Insert/Update on the same form

Yes, you only need one form then in the Server Connect you find out if it needs to update or insert.

In the form I have a hidden field that has the ID of the data being manipulated from the Server Connect. If server side detects an ID it means a record already exists, so the DB is updated, otherwise an insert is carried out.

On the front end, populate the form with the record info that is required. If there are no DB records for it the fields will be blank anyway.

This should help:

3 Likes