Forums

Switch form pages does not work

antiol 22 Mar, 2017
Hi, sorry for my english.

I followed this guide bat does not work for me
How can I switch form pages in CFv5?


If I change the page from the radio box, the result is a blank page

Any suggestions?
thank you very much

Antonio
GreyHead 22 Mar, 2017
Hi Antonio,

A blank page is usually a sign of a PHP Error, please set your Site Error reporting temporarily to Maximum and then see if you get a more helpful message.

Bob
antiol 22 Mar, 2017
Hi bob,

I attach two files.
I hope to go well

Thank you very much

Antonio
GreyHead 22 Mar, 2017
Hi Antonio,

Please set your Site Error reporting temporarily to Maximum and then see if you get a more helpful message.

Bob
antiol 22 Mar, 2017
Forgive my ignorance but how do I do this?

Thanks
GreyHead 22 Mar, 2017
Hi Antonio,

Site Admin > Global Configuration > Server > Error Reporting (I think that is the right place from memory).

Bob
antiol 22 Mar, 2017
Perfect.
This is code error:

Notice: Undefined index: page_switch in /web/htdocs/www.canonservicesrl.it/home/administrator/components/com_chronoforms5/chronoforms/actions/event_switcher/event_switcher.php(26) : eval()'d code on line 2

Notice: Undefined offset: -1 in /web/htdocs/www.canonservicesrl.it/home/administrator/components/com_chronoforms5/chronoforms/actions/html/html.php on line 269
GreyHead 22 Mar, 2017
1 Likes
Hi Antonio,

The first one of those says that there was no value set for $form->data['page_switch']

Bob
antiol 22 Mar, 2017
Thanks Bob, but the value is selected. This is very strange
Max_admin 22 Mar, 2017
Hi Antonio,

Please post a screenshot for the form setup section.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
antiol 22 Mar, 2017
Hi Max, here's

Thanks

Antonio
Max_admin 23 Mar, 2017
Hi Antonio,

The form setup looks ok, please add a "debugger" action above the "event switcher" and test the form once, what do you get in the debug results ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
antiol 23 Mar, 2017
Hi Max,
this is the report debugger

Thank you very much

Antonio
GreyHead 23 Mar, 2017
Hi Antonio,

There is no value set there for page_switch - the radio button group appears to be called radio4.

Bob
antiol 23 Mar, 2017
Answer
Hi Bob

This is a custom code

<div class="form-group gcore-form-row" id="form-row-radio4"><label for="radio4" class="control-label gcore-label-left gcore-label-checkbox">Radio Label</label>
<div class="gcore-input gcore-display-table" id="fin-radio4"><div class="gcore-single-column" id="fclmn"><div class="gcore-radio-item" id="fitem"><input name="radio4" id="radio4" value="page_2" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" checked="checked" />
<label class="control-label gcore-label-checkbox" for="radio4">Go to Page 2</label></div>
<div class="gcore-radio-item" id="fitem1"><input name="radio4" id="radio41" value="page_3" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="radio41">Go to Page 3</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-button5"><div class="gcore-input gcore-display-table" id="fin-button5"><input name="button5" id="button5" type="submit" value="Submit" class="btn btn-default form-control A" style="" data-load-state="" /></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="form-group gcore-form-row" id="form-row-custom"><label for="custom" class="control-label gcore-label-left">This is page 2</label>
<div class="gcore-input gcore-display-table" id="fin-custom"><p>This is page 2</p></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="form-group gcore-form-row" id="form-row-custom1"><label for="custom1" class="control-label gcore-label-left">This is page 3</label>
<div class="gcore-input gcore-display-table" id="fin-custom1"><p>This is page 2</p></div></div><!--_CHRONOFORMS_PAGE_BREAK_-->


I enclose also the setting radiobox

Thanks

Antonio
antiol 23 Mar, 2017
Hi bob,
I have read your previous post and I partly solved

This is my new custom code

<div class="form-group gcore-form-row" id="form-row-page_switch"><label for="page_switch" class="control-label gcore-label-left gcore-label-checkbox">Radio Label</label>
<div class="gcore-input gcore-display-table" id="fin-page_switch"><div class="gcore-single-column" id="fclmn"><div class="gcore-radio-item" id="fitem"><input name="radio1" id="page_switch" value="page_2" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="page_switch">Go to Page 2</label></div>
<div class="gcore-radio-item" id="fitem1"><input name="radio1" id="page_switch1" value="page_3" class="A" title="" style="" data-load-state="" data-tooltip="" type="radio" />
<label class="control-label gcore-label-checkbox" for="page_switch1">Go to Page 3</label></div></div></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="button4" id="button4" type="submit" value="Submit" class="btn btn-default form-control A" style="" data-load-state="" /></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="form-group gcore-form-row" id="form-row-custom"><label for="custom" class="control-label gcore-label-left">Custom Code</label>
<div class="gcore-input gcore-display-table" id="fin-custom">This is page 2 ciao</div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="form-group gcore-form-row" id="form-row-custom1"><label for="custom1" class="control-label gcore-label-left">Custom Code</label>
<div class="gcore-input gcore-display-table" id="fin-custom1">This is page 3</div></div><!--_CHRONOFORMS_PAGE_BREAK_-->


if I select "Go to page 3" it always goes to page 2
GreyHead 23 Mar, 2017
Hi Antonio,

Something is wrong here - you shouldn't need to use Custom code for the radio box. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
antiol 23 Mar, 2017
I sent you a PM

Thanks
Antonio
GreyHead 23 Mar, 2017
Hi Antonio,

ChronoForms uses the Field name to identify the data so that needs to be set to page_switch

Bob

[attachment=270_20170323134333_2017-03-23-14-40-26-png.png][/attachment]
antiol 23 Mar, 2017
Hi Bob,

I'm happy. The form works great 😀

Many thanks for your valuable support.

Best regards
Antonio
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger