Ui page field hide / show according to condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 11:00 PM
HI ,
i have a query to make ui page hide or show with respect to changes in some field.
Like i have jira issue type should be shown only when jira project is selected until that is changes it should not shown even at load as well.
i have tried to write the below code in client script not working.Please help if anyone has any idea.
below is the code:
HTML:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 11:51 PM
Hi Svani,
Kindly mark my comment as the solution so that it can be helpful to others.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 12:20 AM
Hi @Aranya ,
Yes sure but one problem when i changed the ui page script, after ok button but incident form is stuck now i need to save before doing , its happening only because of these changes, i tried to remove the changes and did its form is fine, do you know any cause of it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 12:50 AM
Hi Svani,
Can you please show some screenshots?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 12:57 AM
Hi @Aranya ,
I have checked ui page script only problem causing is from below function
you can see above i have clicked the jira details but form is stuck unable to update and change anything on the form , if i remove the above function it works but i cannot hide field on load thats the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 06:27 AM
Hi Svani,
If you are calling the UI Page from a UI action, then pass the values from the page to the action and then to a Script Include.
Otherwise, you can use the "Processing Script" section to run a server-side code.