Can we control choices (in drop down) of 'List' type field based on some referenced field's Choices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 12:16 AM
Hi,
I have Sample form where I have 'List' type field test_key, I created choices in it using dictionary. (TestA; TestB; TestC; TestD; TestE; TestF; TestG; TestH) and I have another field on same form which is referenced field name 'Test' and on referenced field's test form has a field name test_type which has choices (Test1; Test2; Test3; Test4).
There is mapping for choices
{ 'Test1' : ['TestA', 'TestB', 'TestC', 'TestD', 'TestE', 'TestF', 'TestG'],
'Test2' : ['TestE', 'TestF', 'TestG'],
'Test3' : ['TestA', 'TestB', 'TestC', 'TestE', 'TestF', 'TestG'],
'Test4' : ['TestA', 'TestB', 'TestC']
}
I have requirement when Sample initially loaded, user can only see selected option/choices in dropdown of List as per Sample form test_type field chosed option,
Ex. If test_type field has 'Test4' selected, then when Sample form onloads then in test_key field list dropdown user should see only those choices to be multi select ['TestA', 'TestB', 'TestC'],
similar when 'Test2' selected then user should see only these choices in List dropdown ['TestE', 'TestF', 'TestG'],
User should not see all choices to be select for multi select.
I tried I am getting all choices in test_key field drop down for any selection in test_type field. Could anybody please suggest any suggestion.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 03:12 PM
Hello @HitSnow
List field type choices aren't controlled the same way as they are for choice field type.
Please share your code
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 04:25 PM - edited ‎03-18-2025 07:35 AM
Hi @HitSnow ,
Please share the code you have written for this along with some screen shot of both field.
We need to configure the mapping of both fields somewhere in system, you can try with Choice [ sys_choice ] for all
test_type values and add the dependent value as test_key value.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution