I want to make submit button for the form widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 05:42 AM - edited 01-04-2023 05:43 AM
I have made Icon link widget to submit the form for leave. But here i need to create Submit button instead of save to submit the record.
Share your knowledge to achieve this could help.
See the below Image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 06:22 AM
There is a global UI action for Submit that saves the record and redirects to the previous screen. I would copy that action and apply that directly to your form.
answer = current.insert();
gs.include('ActionUtils');
var au = new ActionUtils();
au.postInsert(current);
Be mindful as there is also a Global action for Submit as "update". So the one would be for new records and the other submit would be for the already saved record.