In one scenario I am trying to display certain choices based on choice selected on other field.

taahamushtaq
Tera Contributor

I have two fields on my table - Product and Type. 
My Product field is a select box and Type field is reference field which is referring to a table.

In Product field I have a choice and if that choice is selected the Type field should show me only 4 choices in lookup (as type is reference field), how can I achieve this.
This is on table level.

2 REPLIES 2

Trupti94
Tera Guru

Hi @taahamushtaq ,

 

1.Create on change client script and send choice value to script include using GlideAjax

2. In server side script (Script include) glide to reference table and push the answer into array, return array

3. fetch the data in client script using answer variable, split the data and set in reference field.

 

let me know if you have any questions.Thanks

Pratiksha
Mega Sage
Mega Sage

You should do this similar to how servicenow is doing with assignment group and assigned to on task forms. 

 

Make use of dependent field. 

 

Regards, 

Pratiksha