Dependent values
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
In incident table i have two choice fields.
1.Scan (choice field)
2. Pan(Choice field)
Senario: I want to show Message Value If Customer or Saving .
I have used decency one but it is not working i want to show this field in list through script. Please provide a script for this. Thanks
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
13m ago
Hi @vinod6 ,
You need to clear options add options based on your conditions in client script.
Sample script:
if (scan == 'customer' || scan == 'saving') {
g_form.clearOptions('pan');
g_form.addOption('pan', '', '-- None --');
g_form.addOption('pan', 'message', 'Message');
g_form.addOption('pan', 'text', 'Text');
g_form.addOption('pan', 'type', 'type');
}
if (scan == 'product') {
g_form.clearOptions('pan');
g_form.addOption('pan', '', '-- None --');
g_form.addOption('pan', 'text', 'Text');
g_form.addOption('pan', 'type', 'type');
}
Thanks
Anand
