Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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
Kilo 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