Client script on dependent field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2020 04:59 AM
Hi all,
Can we write onChange client script for dependent. I basically have a form in which there are two fields 'categories' and 'subcategory'. The subcategory field depends upon category. The choices in subcategory depends upon what choice had been made in category. Now I have some choices in subcategory which I need to show for more than one category. For ex- I want choices 'A' and 'B' to show in subcategory for category '1', '2' , '3'.
I have written a onChange client script for it to add choices to subcategory when required category are there using g_form.addOption. But it is not working. However when I changed the field instead of sub category it worked. I think the issue with dependent field.
Anyone can help or suggest on this. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2020 10:43 AM
Hi,
Check below link that may help you.