- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:38 AM
I'm trying to hide two UI actions when the state is either closed complete or closed incomplete. If the state is either of these values I don't want the buttons to show up on the form. I added conditions to the UI actions but this will only hide the button if the form is in that state and not hide both buttons. Any suggestions? I've tried UI policies and client scripts but so far nothing is working properly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:49 AM
Hi Matt,
Your Condition should be like :
current.state!=<value for Closed Complete> && current.state!=<value for Closed Complete>
Please replace the values and use it in condition
Thanks,
Arindam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:49 AM
Hi Matt,
Your Condition should be like :
current.state!=<value for Closed Complete> && current.state!=<value for Closed Complete>
Please replace the values and use it in condition
Thanks,
Arindam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:53 AM
It should be:
current.state!=<value for Closed Complete> && current.state!=<value for Closed Incomplete>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:53 AM
You can use client script to do this.
var items = $$('BUTTON').each(function(item){
if(item.innerHTML.indexOf('Submit') > -1){ //Submit is the name of the UI Action
item.hide();
}
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:56 AM
Can you paste what you have so far or tried?
The condition will look something like this on each UI action: (current.incident_state != 7 && current.incident_state != 6)
So if it's not one of these values (need to double check your state values) then show up.