- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 01:36 AM
There are 5 questions on a record producer form, i need to show a message based on this 5 fields selection. onchange client script only working when change of a field that is configured. Need help on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 07:14 AM
i created 2 fields, q3 and q4.
i have an onchange client script on q3 with the script shown below.
(put the same on q4 and change the field name)
extrapolate from this to your 5 fields.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'yes'){
if (g_form.getValue('u_q4') == 'yes'){
alert('1');
}
else {
alert('2');
}
}
else if (g_form.getValue('u_q4') == 'yes'){
alert('3');
}
else {
alert('4');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 07:14 AM
i created 2 fields, q3 and q4.
i have an onchange client script on q3 with the script shown below.
(put the same on q4 and change the field name)
extrapolate from this to your 5 fields.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'yes'){
if (g_form.getValue('u_q4') == 'yes'){
alert('1');
}
else {
alert('2');
}
}
else if (g_form.getValue('u_q4') == 'yes'){
alert('3');
}
else {
alert('4');
}
}