- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 06:53 PM - edited ‎12-13-2023 07:01 PM
We have a form that we want to keep major record functionality buttons up top of the form (and below) but for buttons that have a "process" flavour that only applies to very limited roles we would like to only show the button UNDER the form - is it possible?
Only want to add button down below...hide it up top..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 08:30 PM - edited ‎12-13-2023 09:31 PM
I seem to have got it working...
Top of form is
and bottom of form is
UI Action is
UI Policy is
Noting that I used "$$('#action_field_name_from action name field from UI action')
...and that a solution should always contain a fully tested and working solution.
...edit
Added a try/catch block around the code as it was generating errors on lookups on the main form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:08 PM
@Roger11 ,
U might need to tweak the solution a bit. In ur case just create an on load UI policy without condition n then try if it works for u or not.
No need to write script in false condition. Just true condition script will do the trick.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:11 PM - edited ‎12-13-2023 07:13 PM
how would you write a script to control the visibility of a "top button" vs a "bottom button"?
ah...I see your first post.
1) Create a UI Policy --> Set Condition as field (check_box) is true
2) In the Script tab set Run scripts true
3) In the if condition write
$$('#action_name')[0].hide(); //This will hide the top button
$$('#action_name')[1].hide(); //This will hide the bottom button as well
4) In the else condition write
$$('#action_name')[0].show(); //This will show the top button
$$('#action_name')[1].show(); //This will show the bottom button as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:27 PM
So if I have a UI action
and I create a UI policy (noting BPE suggestion to not do this)
It is still showing up on top.
and also if I use the label of the UI policy