sysverb_cancel in embedded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 06:31 AM
Hello Community,
I have a main table, which includes two embedded tables. Some sections of the main table are mandatory. The mandatory field should only display a warning message when the submit button is pressed, which is why I used sysverb_cancel. There are two stages in the UI action. The first UI action is "create" (it creates a new record in the embedded table ). In the second stage, I want to update these records when the update button is clicked. This update button updates the main table without being blocked by the mandatory fields, but it does not update the records in the embedded tables. Thanks your help in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 07:38 AM
Hi @beycos ,
If you really want a New button and a form so you can validate, change it from an embedded list to a related list.
The key to know about the embedded lists is that they act as part of the form. Even if you enter information, it's not saved until the form it is embedded on is saved. It's a quick way to enter lots of new records (e.g. answers to a question for example). It doesn't sound like you need the embedded list functionality and really want to see that full form for the child record so you can do some validation - I recommend changing to a related list. Just remove the embedded list from the form and add the related list.
You could try validating your embedded list fields based on an after BR on the parent record being created/updated or on the embedded list record being created/updated, but this feels like a hack to me.
Please refer to following thread:
https://www.servicenow.com/community/developer-forum/new-button-on-embedded-list/m-p/2110089
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda