Skip to main content
Question

Add Record save button, able to capture the new RecID

  • September 24, 2019
  • 0 replies
  • 52 views

I'm working on adding a save button, which will save either an edit record, or save an add record, and then be able to get the new Record ID.


I have code which will work for Editing a record, but not if it's a brand new "add record" form.

------------------------------
Ryan Stanford
------------------------------

  • Registered
  • September 24, 2019
I think I saw another post about a similar thing somewhat recently.

The record ID is created once the record is created. You might be able to see what the most recent record id is and guess what the next would be but this will only work if you have a single person inputting records. If 2 people open the add form at one time(or another opens it before the first saves) then the next record id will be duplicated.

I'm not sure it is possible to grab the new record id via a button though.. Maybe with javascript there is a way. What are you trying to do exactly? That might help.