I want the New/Edit list form to remain open for editing when save is clicked. However it should save the changes. The form should finally close when x or cancel is clicked. Is their a way to do this? Thanks in advance.
You can do this easily in InfoPath. Just edit the current list forms, and add 2 buttons called saving and cancel. Add a rule for the save button to submit data, and a rule for the cancel button to close the form. Publish the form.
Kindly refer the below link:
Steps to follow:
1) Adding script code in a CEWP for NewForm.aspx:
2) In EditForm.aspx, add script code in a CEWP