I want to make submit button for the form widget.

Mad3
Tera Expert

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.

Mad3_1-1672839745206.png

 

 

1 REPLY 1

Ricky Hardesty
Tera Contributor

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.