ThAccording radio button selection set value to next field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 11:40 PM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 01:59 AM
Hi @vikasgc1999 try below code
function onSubmit() {
//Type appropriate comment here, and begin script below
var option = g_form.getValue('radio button name');
if (option == 'RadioButtonChoice 1') {
g_form.setValue(SecurityGroupNameField, 'choice 1 ');
} else if (option == 'RadioButtonChoice 2') {
g_form.setValue(SecurityGroupNameField, 'choice 2 ');
} else if (option == 'RadioButtonChoice 3') {
g_form.setValue(SecurityGroupNameField, 'choice 3 ');
} else if (option == 'RadioButtonChoice ') {
g_form.setValue(SecurityGroupNameField, 'choice 4 ');
}
}
Please mark my answer Correct/Helpful,
Regards,
Siddharam