- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 10:27 PM
In problem record, hide the Notes section
when state is equal to '102'. onChange Client script - Conditions
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 10:38 PM
To hide your sections is pretty simple. create your UI Policy and Add a condition when state is '102' and make sure to check run Scripts In your true/false sections add your code:
True:
function onCondition() {
g_form.setSectionDisplay('notes', true);
}
False:
function onCondition() {
g_form.setSectionDisplay('notes', false);
}
Regards,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 11:48 PM
Hi @Rajkumar Bommal ,
I tried your problem in my PDI and it works for me please create UI Policy and apply filter condition like - state is assess
Add below code
function onCondition() {
alert("from UI Policy");
g_form.setSectionDisplay('notes', false);
}
Result
State is Asses and there is no Notes section available
When state is not asses it shows notes section
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 11:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 11:39 PM
Hi @Rajkumar Bommal ,
You can achieve this through UI policy.
Please find the attach screenshots
Inside Script section please write the following code.
Execute True:
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 11:48 PM
Hi @Rajkumar Bommal ,
I tried your problem in my PDI and it works for me please create UI Policy and apply filter condition like - state is assess
Add below code
function onCondition() {
alert("from UI Policy");
g_form.setSectionDisplay('notes', false);
}
Result
State is Asses and there is no Notes section available
When state is not asses it shows notes section
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak