Using new id on current page

Hi Tom,

The problem in your case is that you are using a combined server action for both insert and update record.
As the output of such action is conditional, Wapplers data pickers can’t know which output you need, so they can not populate the results for you.

This is also not the best design, we advice to make separate server actions per functionality. Avoid too much conditionals as those can be confusing and make things only complicated. Just make a separate insert and update actions - just doing one thing as they should.

1 Like