Hi Guys
Ok, I gave up. I think there is something going on with CF v5 when it comes to interpreting <textarea> in a multipage form setup.
I use CF v5 to design a multipage form that utilizes the styling elements from Yootheme's UIKit. I created each page as a standalone form and tested them individually to make sure the HTML is at least rendered as intended and the code does not crash the designer. All the pages passed this test, so I started concatenate them into a multipage setup with an approach shown in the attachment. The HTML code from each page is copied into the Custom element in its assigned page. This process worked well, and I was able to put data into DB. That is, until pages with <textarea> are introduced.
If a page with <textarea> is added, it would crash the designer and render it to be unusable, regardless of whether Form Theme is loaded or not. When enter the problem form via Form Manager, you can see from Crash2 that General, Designer and Setup are kind of merged onto one page. In Crash3, you'll see the screen shot when the Edit button of that Custom Element is clicked.
I tried to debug w/ a simplified design by using the demo plus a snippet of code w/ the <textarea>. See screen shot of the Designer in .
This is the snippet of code I pasted in:
This form is rendered correctly as an individual form. When it's added as Page4 to a MPF, CFv5 still renders correctly, but the form crashes Form Manager (I tried to enclose a .cf5bak, but the forum wouldn't let me. If I don't use any of the Yootheme UIKit styling element, then the designer would omit the </textarea> and display every following piece of HTML code in the textarea itself.
So here is the code from that MPF. Please help, I really need to get over this problem so I can release the work. Thank you very much for your support. If there is anything you need to debug this problem, please don't hesitate to ask.
SH
Ok, I gave up. I think there is something going on with CF v5 when it comes to interpreting <textarea> in a multipage form setup.
I use CF v5 to design a multipage form that utilizes the styling elements from Yootheme's UIKit. I created each page as a standalone form and tested them individually to make sure the HTML is at least rendered as intended and the code does not crash the designer. All the pages passed this test, so I started concatenate them into a multipage setup with an approach shown in the attachment. The HTML code from each page is copied into the Custom element in its assigned page. This process worked well, and I was able to put data into DB. That is, until pages with <textarea> are introduced.
If a page with <textarea> is added, it would crash the designer and render it to be unusable, regardless of whether Form Theme is loaded or not. When enter the problem form via Form Manager, you can see from Crash2 that General, Designer and Setup are kind of merged onto one page. In Crash3, you'll see the screen shot when the Edit button of that Custom Element is clicked.
I tried to debug w/ a simplified design by using the demo plus a snippet of code w/ the <textarea>. See screen shot of the Designer in .
This is the snippet of code I pasted in:
<fieldset data-uk-margin>
<legend>Alcohol Consumption</legend>
<div class="uk-form-horizontal">
<div class="uk-form-row uk-margin-top">
<label class="uk-form-label">Do you consume alcohol regularly?</label>
<div class="uk-form-controls uk-form-controls-text">
<input type="radio" id="drinkalcohol" name="drinkalcohol" value="yes">
<label for="drinkalcohol"> Yes</label>
<input type="radio" id="drinkalcohol" name="drinkalcohol" value="no" checked>
<label for="drinkalcohol"> No</label>
</div>
</div>
</div>
<div class="uk-form uk-form-stacked">
<div class="uk-form-row">
<label class="uk-form-label" for="alcoholconsumption">Describe your alcohol consumption</label>
<div class="uk-form-controls">
<textarea id="alcoholconsumption" name="alcoholconsumption" cols="75" rows="2" placeholder=""></textarea>
</div>
</div>
</div>
</fieldset>
<div class="uk-width-1-1 uk-text-center">
<button class="uk-button uk-button-primary uk-button-large" name="submit6" type="submit">##BUTTON##</button>
</div>
This form is rendered correctly as an individual form. When it's added as Page4 to a MPF, CFv5 still renders correctly, but the form crashes Form Manager (I tried to enclose a .cf5bak, but the forum wouldn't let me. If I don't use any of the Yootheme UIKit styling element, then the designer would omit the </textarea> and display every following piece of HTML code in the textarea itself.
So here is the code from that MPF. Please help, I really need to get over this problem so I can release the work. Thank you very much for your support. If there is anything you need to debug this problem, please don't hesitate to ask.
SH
<div class="gcore-line-tr gcore-form-row" id="ftr-fld1"><div class="gcore-line-td" id="ftd-fld1"><label for="fld1" class="gcore-label-left">Page 1</label>
<div class="gcore-display-table gcore-input" id="fin-fld1"> <label for="text5" class="control-label gcore-label-left">Text Label</label>
<div class="gcore-input gcore-display-table" id="fin-text5">
<input name="text5" id="text5" value="" placeholder="" maxlength="" size="" class="form-control A" title="" style="" data-inputmask="" type="text" /></div></div><div class="form-group gcore-form-row" id="form-row-3">
<div class="gcore-input gcore-display-table" id="fin-button6">
<input name="button6" id="button6" type="submit" value="submit" class="form-control A" style="" />
</div></div></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="gcore-line-tr gcore-form-row" id="ftr-fld2"><div class="gcore-line-td" id="ftd-fld2"><label for="fld2" class="gcore-label-left">Page 2</label>
<div class="gcore-display-table gcore-input" id="fin-fld2"><div class="form-group gcore-form-row" id="form-row-4">
<label for="dropdown7" class="control-label gcore-label-left">Dropdown Label</label>
<div class="gcore-input gcore-display-table" id="fin-dropdown7">
<select name="dropdown7" id="dropdown7" size="" class="form-control A" title="" style="">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
</div>
<div class="form-group gcore-form-row" id="form-row-5">
<div class="gcore-input gcore-display-table" id="fin-button8">
<input name="button8" id="button8" type="submit" value="Submit" class="form-control A" style="" />
</div>
</div></div></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="gcore-line-tr gcore-form-row" id="ftr-fld3"><div class="gcore-line-td" id="ftd-fld3"><label for="fld3" class="gcore-label-left">Page 3</label>
<div class="gcore-display-table gcore-input" id="fin-fld3"> <label for="checkbox_group9" class="control-label gcore-label-left gcore-label-checkbox">Checkbox Group</label>
<div class="gcore-input gcore-display-table" id="fin-checkbox_group9">
<div class="gcore-single-column" id="fclmn10">
<div class="gcore-checkbox-item" id="fitem7">
<input name="checkbox_group9[]" id="checkbox_group96" class="A" title="" style="" type="checkbox" value="No" />
<label class="control-label gcore-label-checkbox" for="checkbox_group96">No</label>
</div>
<div class="gcore-checkbox-item" id="fitem9">
<input name="checkbox_group9[]" id="checkbox_group98" class="A" title="" style="" type="checkbox" value="Yes" />
<label class="control-label gcore-label-checkbox" for="checkbox_group98">Yes</label>
</div>
</div>
</div>
</div>
<div class="form-group gcore-form-row" id="form-row-12">
<div class="gcore-input gcore-display-table" id="fin-button10">
<input name="button10" id="button10" type="submit" value="Submit" class="form-control A" style="" />
</div>
</div></div></div><!--_CHRONOFORMS_PAGE_BREAK_--><div class="gcore-line-tr gcore-form-row" id="ftr-fld4"><div class="gcore-line-td" id="ftd-fld4"><label for="fld4" class="gcore-label-left">Textarea</label>
<div class="gcore-display-table gcore-input" id="fin-fld4"><fieldset data-uk-margin>
<legend>Alcohol Consumption</legend>
<div class="uk-form-horizontal">
<div class="uk-form-row uk-margin-top">
<label class="uk-form-label">Do you consume alcohol regularly?</label>
<div class="uk-form-controls uk-form-controls-text">
<input type="radio" id="drinkalcohol" name="drinkalcohol" value="yes">
<label for="drinkalcohol"> Yes</label>
<input type="radio" id="drinkalcohol" name="drinkalcohol" value="no" checked>
<label for="drinkalcohol"> No</label>
</div>
</div>
</div>
<div class="uk-form uk-form-stacked">
<div class="uk-form-row">
<label class="uk-form-label" for="alcoholconsumption">Describe your alcohol consumption</label>
<div class="uk-form-controls">
<textarea id="alcoholconsumption" name="alcoholconsumption" cols="75" rows="2" placeholder=""></textarea>
</div>
</div>
</div>
</fieldset>
<div class="uk-width-1-1 uk-text-center">
<button class="uk-button uk-button-primary uk-button-large" name="submit6" type="submit">##BUTTON##</button>
</div>
</div></div></div>