Hi folks,
I have a form that submits to a handler event and executes the following:
if(userService.validateEmailUpdate(rc.contactid,rc.email) EQ false){
//email address already in use
rc.error = “Email Address (#rc.email#) is already in use.”;
setNextEvent(event=‘verify/contact’,persist=‘error,contact,user’,queryString=’#rc.contact_hash#/#rc.user_hash#/’);
Essentially I’m redirecting and passing the original query string parameters back to the form using the queryString param of setNextEvent()
This works fine and my form loads up properly with the original data (sort of like a postback) however if I refresh my page after setNextEvent() occurs I get an error saying that rc.contact_hash doesn’t exist despite it being in the query string.
Any ideas what i’m doing wrong or why the error occurs when I refresh?
Thanks.
Nolan