We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Dependent values

vinod6
Tera Contributor

In incident table i have two choice fields.
1.Scan (choice field)

vinod6_0-1764162682224.png
2. Pan(Choice field)

vinod6_1-1764162789767.png

Senario: I want to show  Message Value If Customer or Saving .

vinod6_3-1764163432119.png

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

Anand__99
Mega Sage

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