How to add more dependent values to one choice field?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2018 02:14 AM
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2018 02:48 AM
Can you send any sample script Thanks.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2018 03:37 AM
Hi,
Please find the below script.
Type : OnChange of Category
var cat = g_form.getValue('category');
if(cat == "option1")
{
g_form.setValue('subcategory',"xyz");
}
if(cat == "option2")
{
g_form.setValue('subcategory',"abc");
}
Please make it as correct if it helps yout.