Forums

Redirect URL parameters - chronfoorm =

NickOg 18 Jul, 2012
Hi Bob,
It has been a busy day!

I can't quite get the hang of redirect URL. I want to redirect to another chronoform, passing a couple of parameters keys for a db record,

I gather that I put nothing in the redirect user box and
index.php?option=chronoforms 


Do I then put

chronoform=formNameToLoad
renewMemberToken=theMemberID
MorP=theMorPCode

where formNameToLoad, theMemberID and theMorPCode are fields in the calling form?

I am having trouble because the chronoform parameters seems to being added twice - in that order and then repeated at the end of the URL.

Regards Nick
GreyHead 18 Jul, 2012
Hi Nick,

In the ReDirect URL action you want to put just index.php in the Target URL box. Everything after the ? goes in the Params/Fields box with input names in {} curly brackets to distinguish them from static values:
option=com_chronoforms
chronoform={formNameToLoad}
renewMemberToken={theMemberID}
MorP={theMorPCode}

Then you need to add a ReDirect User action as the last action in the On Submit event to do the actual redirection.

Bob

PS it's option=com_chronoforms
NickOg 18 Jul, 2012
Ah hah! And so I don't really need a field for the form name since it is a 'constant'. Chronoforms - my typing is worse on my iPad.

Thanks as ever. Chronoforms and your support really are the tops!

Nick.
PierreL 26 Jul, 2012
But I didn't understood how did you used {theMemberID} and {theMorPCode} simultaneously to load the user data in the form.
Could you please clarify.

What actions and events you used.
NickOg 26 Jul, 2012
I am not quite sure that I understand your question. Both of those values {theMemberID} and {theMorPCode} are fields on the form in which the RedirectURL action is embedded. The names in the {} are the names used for the fields in the form.

Does that help?

Nick
This topic is locked and no more replies can be posted.