The Zurich release has arrived! Interested in new features and functionalities? Click here for more

List type field value dependent on Choice type field

Qiao
Tera Contributor

A choice field which has three choice value named(A,AA,B,BB)

and a list field which has choice value named(a,aa,b,bb)

 

When the choice field is choosed A or AA,then the list field should only display a and aa.

When the choice field is choosed B or BB,then the list field should only display b and bb.

 

By the way,the list field doesn't choose any reference table.

 

How should I do to imply this?

Thank you

 

 

1 REPLY 1

Tai Vu
Kilo Patron
Kilo Patron

Hi @Qiao 

Yes you might need an OnChange Client Script in the choice field. Then making an Ajax call to query to the table that the list field type referencing to, in order to get the records based on the selected choice.

After that, use the response in the callback function from your client script and populate the list field with the result return.

 

If you can provide more details on the choice field and the list field, we can give you a sample of the client script and script include for your case.

 

Cheers,

Tai Vu