Hi,
Greetings of the day!
This is regarding the Pre-populating text is not working while switching the radio buttons while texting the form in Hybrid platform after deploying.
Requirements:
Requirement 1) Our form requests User to fill 2 fields.
First Field is a Radio button with Choices as Yes,No and N/A (say the field name is YES_NO_NA )
Second Field is a Free text box which User can edit and type whatever is required (say the field name is SIGNIFCANT_DETAILS )
Requirement 2) If User selects β Yes β from the first field, then we require the second field to be pre-populated with a defined response as β The premises is only occupied by residents β
Requirement 3) If User selects β N/A β from the first field, then we require the second field to be pre-populated with a defined response as β N/A β
Requirement 4) If User selects β No β from the first field, then we require the second field NOT to be pre-populated so the User can update his own comments (second field being a free text)
Requirement 5) when user is selecting the radio button βYesβ the Pre-populated text is displaying and when he changed his choice to βN/Aβ and selected the radio button βN/Aβ the Pre-populated text is displaying correctly but at the third time when he is changing his choice from βN/Aβ to βYesβ the Pre-populated text is not displaying.
Approach
We have defined 2 fields as required (i.e. YES_NO_NA and SIGNIFCANT_DETAILS ).
We downloaded the Forms .xls format
In the .xls format, For the second field we have used the calculate column and updated the below a formula
if(${YES_NO_NA}=βYesβ,${SIGNIFICANT_DETAILS_Yes},(if(${YES_NO_NA}=βN/Aβ,${SIGNIFICANT_DETAILS_NA},${SIGNIFICANT_DETAILS})))
The above approach has solved our Requirements 1,2, 3 and 4 but NOT Requirement 5
Please suggest the right approach to meet this requirement. Please note we have tried in kobotoolbox.org it is working fine but whereas in Hybrid.
Please find the below attached file.
SAMPLEFORM.xlsx (12.7 KB)
Many Thanks
Keerthi