I have an action file that based on a condition will either insert, update or delete a record. The form that uses this action populates using a data detail.
What I’m trying to do is reload the data detail after successful insert action (form success event) based on the last insert id. I need to reload it because there is a section in the form that will show after the record is inserted (created). If I hard code the next insert ID value (because I know what it will be) it reloads successfully to the correct record I just created, but if I try to get last insert ID dynamically using the returned “identity” it doesn’t work.
I can see in the console that it’s returning the identity though.
I’m sure I’m missing something simple but I’ve been at it about an hour now and can’t figure it out.
Thanks in advance,
Twitch
Last updated: