Refresh Field with new ID from Edit Form

So I have a page on which I have an edit form that allows me to "Copy" an existing item to create a new one.


I want the post action context to refresh the page with the new ID but.. I am not sure I can.


Thoughts?

Comments

  • So, I kind of figured out a solution for this, maybe it's the only solution, I don't know.


    My page has a page expression view form, on which I added a field called NEWINSTANCEID that is just a NEWID()


    When I open the edit form, I pass that field as a default form value, and use it as the ID of the new instance.  


    Then My post action event goes to the page using the page expression field.
  • I think you've got a clever solution and it's probably the best and easiest way to stay within the properties available on a page. An alternative might be to use a custom UI model and make use of the NavigateToPage() method to redirect after your action completes.

Categories