@jonatandor35 Got it working.
I setFieldValues to update that one field $w( ‘#allergies’ ).value called “allergies” with “Sin alergias conocidas”
ie. “allergies” : “Sin alergias conocidas”
My code:
$w.onReady( function () {
const allergy = $w( ‘#allergies’ ).value;
if (allergy === “” ){
$w( “#ptDataset” ).onReady( () => {
$w( “#ptDataset” ).setFieldValues( {
“allergies” : “Sin alergias conocidas”
} );
} );
}
});