UI action validate based on the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 01:49 AM
I have two UI actions on the incident form, I need to validate that filed is not blank.
I tried to do this by adding the current.filed_name != ''; in the condition of the ui action
if the field value is blank the ui actions are not visible on the form(working).
If I tried to put some value on the filed again the ui actions are not visible on the form(Not working),
can anyone help me on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 01:55 AM
Can you check with this :
current.field_name.nil() // Check if the field is not empty or null
Kindly mark helpful/accepted if it helps you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 02:00 AM
Even if it empty I'm able to see the ui actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 02:48 AM
Hello @XYD23
Please try below condition,
current.description.nil() == false;
Thanks & Regrds,
Vrushali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 02:52 AM
no If I tried to put the value in that field, I cant see the ui actions.