- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 03:10 AM
Hello.
I have a UIaction button "accept contract", when this is clicked and the value u_singed_contract becomes TRUE.
I want to hide the UIaction button. I tried to do it with a ui policy that said "when u_signed_contract = true" "accept contract visible = FALSE".
This did not work, any tips?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 05:26 AM
var conditions_hidestudbutton = Class.create();
conditions_hidestudbutton.prototype = Object.extendsObject(AbstractAjaxProcessor, {
function isContractSigned(current) {
return current.u_contract_signed_student; // if this is true, it will return true and you will be able to see the UI action else not
},
type: 'conditions_hidestudbutton'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 03:14 AM
Put the check in 'Condition' on the UI action record.
Go to- System Definition -> UI actions
Find your UI action and update there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 03:15 AM
Hello thanks for the reply.
The UIaction button has condition field has no more room to put more into it sadly. Is there another way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 03:27 AM
Yes,
move the logic to script include and call script include in condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 03:30 AM
Hello again and thank you.
Working in conditions is new for me, if i name my script include "contracthide" how do i call it in the condition?