Forums

Form redirect not working

john.murray 27 Feb, 2015
site has url rewriting ON,
in setup tab under on-load | render html i have relative URL ON
under on submit i have a debugger, email, and redirect

if i test the form in the backend, it always works. from the site the form always returns to itself

url of form:
http://armedcitizensnetwork.org/join/purchase-membership

after submit - resulting url:
http://armedcitizensnetwork.org/join/purchase-membership?chronoform=Membership&event=submit
GreyHead 27 Feb, 2015
Hi John,

Please set Relative URL to No in the form HTML (Render Form) action and see if that fixes the issue.

Bob
john.murray 27 Feb, 2015
I've actually tried it both ways.

ti get things working for my client - i quickly re-created just a basic form - it appears to work fine!

here is the code from the one having issues (you can currently find it at the url http://acldn.org/membership

<div class="form-group gcore-form-row" id="form-row-custom"><div class="gcore-input gcore-display-table" id="fin-custom"><h3>Join the Network Online</h3>
<p>Network members enjoy the benefits enumerated on the Membership benefits page. See http://armedcitizensnetwork.org/learn/membership-benefits</p>
<p>Log in codes for access to members-only portions of this website will not be created until the application is processed. When that is done, our membership services staff will create log in accounts for the new member and email their log in codes to them. Membership cards and DVDs will be mailed to the new member 7-10 days after the application is processed.</p>
<p>If adding a Household member to your membership purchase, enter their name below on this form.Household members must live at the same address as the Primary Member</p>
<p>If this purchase is a gift for someone else, please provide their name and information in the "Ship To" fields, and note "Gift Membership" in the "Notes" field at the end of the order process.</p></div></div><div class="form-group gcore-form-row" id="form-row-type"><label for="type" class="control-label gcore-label-left gcore-label-checkbox">Membership Type</label>
<div class="gcore-input gcore-display-table" id="fin-type"><div class="gcore-single-column" id="fclmn"><div class="gcore-radio-item" id="fitem"><input name="type" id="type" value="New" class="validate['group:7'] A" title="" style="" data-load-state="" data-tooltip="" type="radio" checked="checked" />
<label class="control-label gcore-label-checkbox" for="type">New Membership</label></div>
<div class="gcore-radio-item" id="fitem1"><input name="type" id="type1" value="Renewal" class="validate['group:7'] A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="type1">Renewal</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-duration"><label for="duration" class="control-label gcore-label-left gcore-label-checkbox">Duration</label>
<div class="gcore-input gcore-display-table" id="fin-duration"><div class="gcore-single-column" id="fclmn1"><div class="gcore-radio-item" id="fitem2"><input name="duration" id="duration" value="1" class="validate['group:29'] A" title="" style="" data-load-state="" data-tooltip="" type="radio" checked="checked" />
<label class="control-label gcore-label-checkbox" for="duration">1 Year</label></div>
<div class="gcore-radio-item" id="fitem3"><input name="duration" id="duration1" value="3" class="validate['group:29'] A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="duration1">3 Years</label></div>
<div class="gcore-radio-item" id="fitem4"><input name="duration" id="duration2" value="10" class="validate['group:29'] A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="duration2">10 Years</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-members"><label for="members" class="control-label gcore-label-left gcore-label-checkbox">Number of Members</label>
<div class="gcore-input gcore-display-table" id="fin-members"><div class="gcore-single-column" id="fclmn2"><div class="gcore-radio-item" id="fitem5"><input name="members" id="members" value="1" class="A" title="" style="" data-load-state="" data-tooltip="Members residing at Primary Member's physical address" type="radio" checked="checked" />
<label class="control-label gcore-label-checkbox" for="members">1</label></div>
<div class="gcore-radio-item" id="fitem6"><input name="members" id="members1" value="2" class="A" title="" style="" data-load-state="" data-tooltip="Members residing at Primary Member's physical address" type="radio" />
<label class="control-label gcore-label-checkbox" for="members1">2</label></div>
<div class="gcore-radio-item" id="fitem7"><input name="members" id="members2" value="3" class="A" title="" style="" data-load-state="" data-tooltip="Members residing at Primary Member's physical address" type="radio" />
<label class="control-label gcore-label-checkbox" for="members2">3</label></div>
<div class="gcore-radio-item" id="fitem8"><input name="members" id="members3" value="4" class="A" title="" style="" data-load-state="" data-tooltip="Members residing at Primary Member's physical address" type="radio" />
<label class="control-label gcore-label-checkbox" for="members3">4</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-custom1"><div class="gcore-input gcore-display-table" id="fin-custom1">Enter names of members below.  Name and Email address are required.  If members want to share an account, enter the same Email address for each member</div></div><div class="form-group gcore-form-row" id="form-row-mbr1-name"><div class="gcore-input gcore-display-table" id="fin-mbr1-name"><input name="mbr1-name" id="mbr1-name" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /><span class="help-block">Primary Member Name</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr1-email"><div class="gcore-input gcore-display-table" id="fin-mbr1-email"><input name="mbr1-email" id="mbr1-email" value="" placeholder="" maxlength="" size="" class="validate['email'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /><span class="help-block">Primary Email Address</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr2-name"><div class="gcore-input gcore-display-table" id="fin-mbr2-name"><input name="mbr2-name" id="mbr2-name" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Name</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr2-email"><div class="gcore-input gcore-display-table" id="fin-mbr2-email"><input name="mbr2-email" id="mbr2-email" value="" placeholder="" maxlength="" size="" class="validate['email'] form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Email Address</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr3-name"><div class="gcore-input gcore-display-table" id="fin-mbr3-name"><input name="mbr3-name" id="mbr3-name" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Name</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr3-email"><div class="gcore-input gcore-display-table" id="fin-mbr3-email"><input name="mbr3-email" id="mbr3-email" value="" placeholder="" maxlength="" size="" class="validate['email'] form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Email Address</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr4-name"><div class="gcore-input gcore-display-table" id="fin-mbr4-name"><input name="mbr4-name" id="mbr4-name" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Name</span></div></div><div class="form-group gcore-form-row" id="form-row-mbr4-email"><div class="gcore-input gcore-display-table" id="fin-mbr4-email"><input name="mbr4-email" id="mbr4-email" value="" placeholder="" maxlength="" size="" class="validate['email'] form-control A" title="" style="" data-inputmask="" data-load-state="hidden" data-tooltip="" type="text" /><span class="help-block">Email Address</span></div></div><div class="form-group gcore-form-row" id="form-row-referal"><label for="referal" class="control-label gcore-label-left gcore-label-checkbox">How did you find out about the network?</label>
<div class="gcore-input gcore-display-table" id="fin-referal"><div class="gcore-single-column" id="fclmn3"><div class="gcore-radio-item" id="fitem9"><input name="referal" id="referal" value="internet" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="referal">The Internet</label></div>
<div class="gcore-radio-item" id="fitem10"><input name="referal" id="referal1" value="tv" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="referal1">Television Program</label></div>
<div class="gcore-radio-item" id="fitem11"><input name="referal" id="referal2" value="magazine" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="referal2">Magazine</label></div>
<div class="gcore-radio-item" id="fitem12"><input name="referal" id="referal3" value="other" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="referal3">Other (please specifiy)</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-other"><div class="gcore-input gcore-display-table" id="fin-other"><input name="other" id="other" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-captcha"><div class="gcore-subinput-container-wide" id="fitem13"><label for="captcha1" class="control-label gcore-label-left">Are you Human?</label>
<div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-captcha1"><input placeholder="" maxlength="" size="" class="form-control A" title="" style="" type="text" name="captcha" id="captcha1" /><span class="help-block">enter characters below - not case sensitive</span></div></div>
<div class="gcore-subinput-container-wide" id="fitem14"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-captcha2">{captcha_img}</div></div></div><div class="form-group gcore-form-row" id="form-row-custom2"><div class="gcore-input gcore-display-table" id="fin-custom2"><h3>Applicant's Statement</h3>
<p>By submitting this membership application, I/We attest that under the laws of the United States of America, I am not legally prohibited from possessing firearms, that I am 18 years of age or older, and that I legally reside in the United States. I understand that any grant of benefits is limited to lawful acts of self defense with no additional criminal charges (unlawful possession of concealed handgun, for example) associated with the incident.</p>
</div></div><div class="form-group gcore-form-row" id="form-row-button4"><div class="gcore-input gcore-display-table" id="fin-button4"><input name="submit" id="button4" type="submit" value="I Attest to the above Statement - Continue to Payment" class="form-control A" style="" data-load-state="" /></div></div>
GreyHead 27 Feb, 2015
Hi John,

The one that you linked to as not working has this Submit URL /membership?chronoform=Membership&event=submit That just seems to reload the form rather than submit it.

Do you have a SEF component on the site?

Bob
john.murray 27 Feb, 2015
no SEF component, other than URL rewrites on. sorry for the confusion - i had to get things working, hence the URL changes from my original post,
GreyHead 27 Feb, 2015
Hi John,

I suspect that the Joomla! SEF is causing the problem but usually the Relative URL setting fixes that.

How are you loading the form page - is it from a ChronoForms menu item?

Bob
john.murray 27 Feb, 2015
yes - that url is loading the form directly (ie: ChronoForms5 ยป ChronoForms5 form). what is strange is i have a couple of other forms that are working correctly - they are also loaded the same way via menu selection.....
This topic is locked and no more replies can be posted.