Form not showing

mxmauro 21 Jul, 2013
Hi,

I'm building a new form in a site but don't know why it doesn't appears.

It is a test form that will be used as an alternative to load articles into K2. The form has some fields like title, category, text and two datepicker fields, loads data from the K2_categories table and does nothing on submit.

You can see what happens here: http://www.profesionalespsi.com/index.php?option=com_chronoforms&tmpl=component&chronoform=agregarevento. It shows debug info but only a hidden input field is inside the form tag.

This is the code generated by the form wizard:

<div class="ccms_form_element cfdiv_header" id="id1_container_div" style=""><h1 style="text-align: center;">Agregar un nuevo evento</h1><div class="clear"></div></div><div class="ccms_form_element cfdiv_text" id="agregarevento_titulo_container_div" style=""><label for="agregarevento_titulo">Título</label><input id="agregarevento_titulo" maxlength="60" size="" class="input-xlarge validate['required']" title="" type="text" value="" name="agregarevento_titulo" />
<div class="clear"></div><div id="error-message-agregarevento_titulo"></div></div><div class="ccms_form_element cfdiv_select" id="agregarevento_categoria_container_div" style=""><label for="agregarevento_categoria">Categoría</label><select size="1" id="agregarevento_categoria" class="input-xlarge validate['required']" title="" name="agregarevento_categoria">

						<?php
						$options_data = $form->get_array_value($form->data, explode(".", "agregarevento_MODEL_cat"));
						if(!is_null($options_data) && is_array($options_data)){
							foreach($options_data as $option_data){
								if(isset($option_data["id"]) && isset($option_data["name"])){
									echo '<option value="'.$option_data["id"].'"'.(in_array($option_data["id"], array (
  0 => '',
)) ? ' selected="selected"' : "").">".$option_data["name"]."</option>\n";
								}
							}
						}
						?>
						</select>
<div class="clear"></div><div id="error-message-agregarevento_categoria"></div></div><div class="ccms_form_element cfdiv_textarea" id="agregarevento_texto_container_div" style=""><label for="agregarevento_texto">Texto</label><?php $editor = JFactory::getEditor(); echo $editor->display('agregarevento_texto', '', 400, 200, 12, , 1); ?><div class="clear"></div><div id="error-message-agregarevento_texto"></div></div><div class="ccms_form_element cfdiv_datetime" id="agregarevento_fechainicio_container_div" style=""><label for="agregarevento_fechainicio">Inicio del evento</label><input id="agregarevento_fechainicio" maxlength="32" size="16" class=" validate['required','target:agregarevento_fechainicio_clone_id'] cf_time_picker" title="" type="text" value="" name="agregarevento_fechainicio" />
<div class="clear"></div><div id="error-message-agregarevento_fechainicio"></div></div><div class="ccms_form_element cfdiv_datetime" id="agregarevento_fechafin_container_div" style=""><label for="agregarevento_fechafin">Fin del evento</label><input id="agregarevento_fechafin" maxlength="32" size="16" class=" validate['required','target:agregarevento_fechafin_clone_id'] cf_time_picker" title="" type="text" value="" name="agregarevento_fechafin" />
<div class="clear"></div><div id="error-message-agregarevento_fechafin"></div></div><div class="ccms_form_element cfdiv_submit" id="input_submit_51_container_div" style="text-align:right"><input name="input_submit_5" class="" value="Agregar evento" type="submit" />
 <input type='button' name='back' value='Cancelar' onclick='history.back()' /><div class="clear"></div><div id="error-message-input_submit_5"></div></div><div class="ccms_form_element cfdiv_empty" id="empty_container_div" style=""><div class="clear"></div><div id="error-message-empty"></div></div>


No error appears so I don't know how to proceed.

Regards,
Mauro.
GreyHead 21 Jul, 2013
Hi mauro,

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
GreyHead 22 Jul, 2013
Hi mxmauro,

I have Error Reporting turned on for my test site and I see this error message:
Parse error: syntax error, unexpected ',' in /home/greyhead/greyhead.org/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php(142) : eval()'d code on line 17


It bit of digging and it looks as though the problem is that the Columns box is empty in the 'Texto' textarea element configuration. Please add a value there.

Bob
mxmauro 22 Jul, 2013
Hi Grey,

Based on your feedback I got the issue.

In the 'contact-me' form I don't fill the "columns" field and use "input-xlarge" as the field class to set the width (I use bootstrap in the Joomla template). It works fine.

But in the 'agregarevento' form, I enabled the WYSIWYG editor and requires the columns field to be filled as you show me.

Thank you very much.
Mauro.
This topic is locked and no more replies can be posted.