- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 06:56 AM
Hello, I would like to ask why the select boxes don't show when I select the checkboxes. I don't know if this is possible in catalog client script. Any suggestion is appreciated. Thank you.
Here's my script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:23 AM - edited 11-30-2023 07:24 AM
Based on my understanding of your code, I would suggest that within your new onChange client scripts on each Checkbox, you can have a condition like -
if(g_form.getValue('checkbox1')==true && g_form.getValue('request_type')=='Account Creation')
{
//show the select-box part
}
This way whenever RequestType if 'Delete Account' & even if CheckBox1 is true, you won't be showing SelectBoxes. Same logic you can put in all the other onChange client scripts as well.
Do mark this response as CORRECT / HELPFUL if you find it appropriate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:52 AM
Thanks a lot. It worked. 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:55 AM
My First Accepted Solution - Thanks @jeansky 😀
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:04 AM
My understanding is, you need to write a different onChange client script on each CheckBox1/2/3 if you want to show another field whenever these are checked / unchecked.
Currently you are trying to show everything onChange of 'Request_Type' field.
For more details, can you please explain, on which variable change, you want to show the selectBox variables?
Do mark this answer as HELPFUL / CORRECT if it helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:08 AM
@jeansky As suggested by Elijah, you would need to define onChange scripts for your check boxes too. However, I recommend you to create UI Policies instead to hide/show the select boxes.