How to set value on current form using ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:32 AM
How to set value on current form using ui action.
i have one ui action on incident form
when i click on it it will open one form with two fields from another table
and when i submit it will capture some fields on that form.
but i want it to restrict or create at once only after that it should not allow to create another record from that ui action.
for that i created one check box, when ui action is click then that checkbox should be true and added condition on ui action if false then only visible so another time ui action should not visible.
how to update that checkbox?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 04:08 AM
Two things:
1. Are you using this UI action on List ? If no what is rowSysId ?
2. function createrecord() is a client side script while current.setValue() or current.update is server side code. Below is an example of how to use both client and server side code in a UI Action
https://servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 04:18 AM
yes using on list
can you please tell me how to fix my issue?