Skip to Main Content

How to Branch & Reset Page Safely?

DannyS-OracleJul 18 2016 — edited Jul 18 2016

Hi fellow Apex users, I hope someone can help me solving this problem! I have been stuck for hours to figure this out but no luck

So I have a form page to create an account. There will be 2 different submit buttons:

  1. Save Account - will save the data and then redirect to homepage (Page 1)
  2. Save & Add Activity - will save the data, then redirect to another form (Page 6)

The confusing part came when I tried to pass some data from this form page to Page 6 on the branching part. I am not sure how to pass the values via URL without losing them upon the "reset page" process.

Screen Shot 2016-07-18 at 3.14.48 PM.png

The "reset page" process will remove all values from the form right after the INSERT operation, thus Page 6 will not receive any values. But I cannot remove the "reset page" process because I want the form to be empty again for next usage. Is there any way to make sure the reset happen after the branch process?

P.S. I am using Apex v5.0.3.

This post has been answered by PMON on Jul 18 2016
Jump to Answer
Post Details
Added on Jul 18 2016