On a New/Edit Record portal page (and backend page), if a validation error occurs after the form is submitted, the original page is displayed with the error details allowing the user to correct the error and resubmit the form. However, any custom/non-rollbase URL parameters that were in the original URL are no longer there. This presents a problem since I use the URL parameters to perform javascript operations on page load. Can the original URL (including any non-rollbase parameters) be maintained when a validation error occurs? Thanks
For example:
Before submitting a page, the URL might be:
https://www.rollbase.com/prod1/portal/portal.jsp?c=9999999&p=9999999&g=9999999&d=9999999&jl_custId=123456
After a validation error, my parameter (jl_custId) is missing from the URL:
https://www.rollbase.com/prod1/portal/portal.jsp?c=9999999&p=9999999&g=9999999&d=9999999
Can you try to use cookies instead of URL parameters?
I will give that a try. Thanks
I think if you load your parameter into a standard (hidden) rollbase field, the value won't disappear after validation and you can reference said field if in case your validation does run, you can just handle onload to check either the URL or the said field :)
Thank you very much and hope this helps.
Hi Martin,
You are correct. That is actually what I ended up doing.
Thanks,
Mike
We're on the same page, hehe
Kudos Mike =)