How can i make Yes/No datatype by default the answer as no in Assessment metrics

chantigadulocal
Kilo Contributor

Hello i need to make yes/no data type by default answer to no in assessment metrics.

and the field should be invisible to questionnaire responded unless the field right above is completed

1 ACCEPTED SOLUTION

divya mishra
Tera Guru

Client Script onLoad :



function onLoad() {


    //Type appropriate comment here, and begin script below


if(g_form.isNewRecord()) {


g_form.setValue("fieldName",false);


}  


}


View solution in original post

8 REPLIES 8

Harish KM
Kilo Patron
Kilo Patron

1. To make default value as "No" right click on the field--default values--type as No


2. Write a UI policy to make the variable visible. When the field isnot empty


Regards
Harish

By right clicking iam not able to see the option default values-type as NO


Harish KM
Kilo Patron
Kilo Patron

you need to type in that field



a.jpg


Regards
Harish

The system ignores that for me...