List type field value dependent on Choice type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 10:14 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 12:55 AM
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