I added a related list declarative action Submit, the button does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
How to add functionality to the button using server script or client script, so that it updates the record state from pending to submitted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@Ankur Bawiskar, Hi - sorry for delayed response. I checked OOB related list actions. I want the same functionality as OOB UI actions in workspace list view. The buttons are appearing and functionality also works, but when I replicate the OOB UI actions like submit, but the conditions which are calling a script include is not working.
For example, this reject button: condition !current.isNewRecord() && (new TimeCardUIActionHelper(current)).canReject()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
share your workspace form button config screenshots
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Siris ,
Can you check whether the the state field is a choice field instead of string.
If it's a choice field then you need to give its internal value for the choices.
Resolution:
current.state=3; //(internal value for the option approved)
current.update();
If this works, kindly mark it as helpful and accept my solution..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Its not form button, list view button - so i added related list action assignments
