How to show/hide fields based on the other list field reference table column which is true or false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 12:05 AM - edited 10-11-2023 12:05 AM
Hi,
We have requirement in which on a form there is a list collector field called 'policy' referencing to another table. In that reference table there is a 'info required' field which is a true/false . We need show/hide another field 'MNP info' on a form based on the reference table field 'info required'. Any help on how to achieve this.
Regards,
Sagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 02:52 AM
thank you for your reply, i probably will have to use Onchange client script since list collector field reference table field record has false and some has true values. Could you please help me with the code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:33 AM
@Sagar S Since the list collector field reference table field record has some false and some true records, how are you going to set the visibility of MNP field on the basis of these multiple values, ideally either you should have a true or a false value to show or hide field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 04:52 AM
The List collector policy field may contain one or more records, if one of the record has the "u_mnpi_info_required" column is checked (true) then i should show the "u_was_the_information_mnpi" on the form . If none of the records in the list collector has not checked(true) the column "u_mnpi_info_required" , then i should hide the "u_was_the_information_mnpi" on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 06:11 AM - edited 10-11-2023 06:12 AM
I have written onchange client script and script include as below and it is not working, please let me know if anything is wrong.
Onchange client script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:42 AM