- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 04:21 AM - edited 09-27-2024 04:24 AM
Hi all,
We have a basic client script which we want to use to show/hide values on our Service and Security Risk Register forms, this is not working. We have tried both 'g_form.removeOption' and 'g_form.addOption' within the script itself but encounter the same issue.
We have even split the scripts out to manage each register individually, but this also did not work.
The Field Type in question is a an Integer.
Can anyone see an issue here or something we have overlooked?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 06:02 AM
Hi Brad,
Thanks for your response. I moved the brackets as suggested and I see some of the values are removed from both registers, as opposed to one or the other (see attached). I added the alert as suggested too and it pops up with the following (attached) blank across both forms, so this appears to be our issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 06:07 AM
I would think if reg is empty, neither condition would be satisfied, so no code would execute, but there may be something else going on, so one thing at a time. Have you confirmed that 'u_register' (case-sensitive) is the correct name of the field you want to test the value of, and that it is present on the form, and contains a value when the form is loaded?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 07:12 AM - edited 09-27-2024 07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 07:56 AM
Great - so everything is working now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 08:27 AM
No, the values have reduced but are showing the same across both forms. To clarify, I meant that I now have values showing on the pop up alert.