- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 02:47 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 11:00 PM
Client Script onLoad :
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.isNewRecord()) {
g_form.setValue("fieldName",false);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 03:14 AM
In order to set a default value :
1. you can write an on load client script under condition g_form.isNewRecord()
2. g_form.setValue("fieldName",value);
Let me know if this was helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 10:55 PM
can you share the code so that it will be helpfull
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 11:00 PM
Client Script onLoad :
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.isNewRecord()) {
g_form.setValue("fieldName",false);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2021 10:34 PM
In Default value, if you don't find drop-down Yes, No.
Just type "No" in the default value so that the field value will be set to know from the choices Yes/No