Hi,
First of all, you have a great component. I was able to create in less than an hour a form that saves its data in a database.
I just have two issues I was unable to solve myself (I’m not, really not a professional developer) : Read the content from the database & limit record creation to 1 per User and Form. If you could give me some advice in order to help me move forward, it would be great !
I have created two forms
1. one to insert content,
2. the other to read content.
In fact I wanted to create all in one : insert and read content in the same form, but I was unable to do it (if you have here a lead would be great!).
The forms contain only multiple checkboxes fields.
First form is working well, saving the content correctly in the database, populating all needed fields incl. the logged in user id (see DATABASESTRUCTURE.JPG).
The second one didn’t work well and doesn’t display the content resp. repopulate the checkboxes accordingly (I have only one record created).
Please find the form parameters in the CHRONOFORMS SETUP.PDF file and hereafter the debugging informations, thanks in advance, cheers, Marc :
Debugging
Data Array
Array
(
[BrandingUpdate] =>
[id] => 32
[uniq_id] =>
[user_id] => 437
[created] => 2014-11-21 19:15:52
[modified] =>
[type_brand] => 1,2
[ecomarketing_functions] => 1,2
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[7] => Array
(
[DB Read] => Array
(
[Queries] => Array
(
[0] => SELECT `Data`.`id` AS `Data.id`, `Data`.`uniq_id` AS `Data.uniq_id`, `Data`.`user_id` AS `Data.user_id`, `Data`.`created` AS `Data.created`, `Data`.`modified` AS `Data.modified`, `Data`.`type_brand` AS `Data.type_brand`, `Data`.`ecomarketing_functions` AS `Data.ecomarketing_functions` FROM `mcl_chronoengine_chronoforms_datatable_branding` AS `Data` WHERE `Data`.`user_id` = '437'
)
)
)
)
Form Code
<input name="id" id="id" value="" type="hidden" class="form-control A" /><div class="form-group gcore-form-row" id="form-row-20"><label for="type_brand" class="control-label gcore-label-top gcore-label-checkbox">A quel type de marque appartient votre marque ?</label>
<div class="gcore-input-wide gcore-display-table" id="fin-type_brand"><div class="gcore-single-column" id="fclmn19"><div class="gcore-checkbox-item" id="fitem2"><input name="type_brand[]" id="type_brand1" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="1" />
<label class="control-label gcore-label-checkbox" for="type_brand1">Marque-caution (ou marque-entreprise ou marque-corporate)</label></div>
<div class="gcore-checkbox-item" id="fitem4"><input name="type_brand[]" id="type_brand3" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="2" />
<label class="control-label gcore-label-checkbox" for="type_brand3">Marque-ombrelle</label></div>
<div class="gcore-checkbox-item" id="fitem6"><input name="type_brand[]" id="type_brand5" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="3" />
<label class="control-label gcore-label-checkbox" for="type_brand5">Marque-topic (ou marque-produit)</label></div>
<div class="gcore-checkbox-item" id="fitem8"><input name="type_brand[]" id="type_brand7" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="4" />
<label class="control-label gcore-label-checkbox" for="type_brand7">Marque-enseigne</label></div>
<div class="gcore-checkbox-item" id="fitem10"><input name="type_brand[]" id="type_brand9" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="5" />
<label class="control-label gcore-label-checkbox" for="type_brand9">Marque de distributeur (MDD) ou marque propre</label></div>
<div class="gcore-checkbox-item" id="fitem12"><input name="type_brand[]" id="type_brand11" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="6" />
<label class="control-label gcore-label-checkbox" for="type_brand11">Marque de service</label></div>
<div class="gcore-checkbox-item" id="fitem14"><input name="type_brand[]" id="type_brand13" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="7" />
<label class="control-label gcore-label-checkbox" for="type_brand13">Griffe</label></div>
<div class="gcore-checkbox-item" id="fitem16"><input name="type_brand[]" id="type_brand15" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="8" />
<label class="control-label gcore-label-checkbox" for="type_brand15">Marque de luxe</label></div>
<div class="gcore-checkbox-item" id="fitem18"><input name="type_brand[]" id="type_brand17" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="9" />
<label class="control-label gcore-label-checkbox" for="type_brand17">Marque industrielle (B to B)</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-28"><label for="ecomarketing_functions" class="control-label gcore-label-top gcore-label-checkbox">Quelles sont les fonctions économique et marketing de ma marque ?</label>
<div class="gcore-input-wide gcore-display-table" id="fin-ecomarketing_functions"><div class="gcore-single-column" id="fclmn27"><div class="gcore-checkbox-item" id="fitem22"><input name="ecomarketing_functions[]" id="ecomarketing_functions21" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="1" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions21">Fonction transactionnelle</label></div>
<div class="gcore-checkbox-item" id="fitem24"><input name="ecomarketing_functions[]" id="ecomarketing_functions23" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="2" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions23">Fonction relationnelle et identitaire</label></div>
<div class="gcore-checkbox-item" id="fitem26"><input name="ecomarketing_functions[]" id="ecomarketing_functions25" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="3" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions25">Fonction aspirationnelle</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-29"><div class="gcore-input gcore-display-table" id="fin-button10"><input name="button10" id="button10" type="submit" value="Enregistrer" class="form-control A" style="" data-load-state="" /></div></div>
First of all, you have a great component. I was able to create in less than an hour a form that saves its data in a database.
I just have two issues I was unable to solve myself (I’m not, really not a professional developer) : Read the content from the database & limit record creation to 1 per User and Form. If you could give me some advice in order to help me move forward, it would be great !
I have created two forms
1. one to insert content,
2. the other to read content.
In fact I wanted to create all in one : insert and read content in the same form, but I was unable to do it (if you have here a lead would be great!).
The forms contain only multiple checkboxes fields.
First form is working well, saving the content correctly in the database, populating all needed fields incl. the logged in user id (see DATABASESTRUCTURE.JPG).
The second one didn’t work well and doesn’t display the content resp. repopulate the checkboxes accordingly (I have only one record created).
Please find the form parameters in the CHRONOFORMS SETUP.PDF file and hereafter the debugging informations, thanks in advance, cheers, Marc :
Debugging
Data Array
Array
(
[BrandingUpdate] =>
[id] => 32
[uniq_id] =>
[user_id] => 437
[created] => 2014-11-21 19:15:52
[modified] =>
[type_brand] => 1,2
[ecomarketing_functions] => 1,2
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[7] => Array
(
[DB Read] => Array
(
[Queries] => Array
(
[0] => SELECT `Data`.`id` AS `Data.id`, `Data`.`uniq_id` AS `Data.uniq_id`, `Data`.`user_id` AS `Data.user_id`, `Data`.`created` AS `Data.created`, `Data`.`modified` AS `Data.modified`, `Data`.`type_brand` AS `Data.type_brand`, `Data`.`ecomarketing_functions` AS `Data.ecomarketing_functions` FROM `mcl_chronoengine_chronoforms_datatable_branding` AS `Data` WHERE `Data`.`user_id` = '437'
)
)
)
)
Form Code
<input name="id" id="id" value="" type="hidden" class="form-control A" /><div class="form-group gcore-form-row" id="form-row-20"><label for="type_brand" class="control-label gcore-label-top gcore-label-checkbox">A quel type de marque appartient votre marque ?</label>
<div class="gcore-input-wide gcore-display-table" id="fin-type_brand"><div class="gcore-single-column" id="fclmn19"><div class="gcore-checkbox-item" id="fitem2"><input name="type_brand[]" id="type_brand1" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="1" />
<label class="control-label gcore-label-checkbox" for="type_brand1">Marque-caution (ou marque-entreprise ou marque-corporate)</label></div>
<div class="gcore-checkbox-item" id="fitem4"><input name="type_brand[]" id="type_brand3" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="2" />
<label class="control-label gcore-label-checkbox" for="type_brand3">Marque-ombrelle</label></div>
<div class="gcore-checkbox-item" id="fitem6"><input name="type_brand[]" id="type_brand5" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="3" />
<label class="control-label gcore-label-checkbox" for="type_brand5">Marque-topic (ou marque-produit)</label></div>
<div class="gcore-checkbox-item" id="fitem8"><input name="type_brand[]" id="type_brand7" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="4" />
<label class="control-label gcore-label-checkbox" for="type_brand7">Marque-enseigne</label></div>
<div class="gcore-checkbox-item" id="fitem10"><input name="type_brand[]" id="type_brand9" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="5" />
<label class="control-label gcore-label-checkbox" for="type_brand9">Marque de distributeur (MDD) ou marque propre</label></div>
<div class="gcore-checkbox-item" id="fitem12"><input name="type_brand[]" id="type_brand11" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="6" />
<label class="control-label gcore-label-checkbox" for="type_brand11">Marque de service</label></div>
<div class="gcore-checkbox-item" id="fitem14"><input name="type_brand[]" id="type_brand13" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="7" />
<label class="control-label gcore-label-checkbox" for="type_brand13">Griffe</label></div>
<div class="gcore-checkbox-item" id="fitem16"><input name="type_brand[]" id="type_brand15" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="8" />
<label class="control-label gcore-label-checkbox" for="type_brand15">Marque de luxe</label></div>
<div class="gcore-checkbox-item" id="fitem18"><input name="type_brand[]" id="type_brand17" class="validate['group:8'] A" title="A quel type de marque appartient votre marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="9" />
<label class="control-label gcore-label-checkbox" for="type_brand17">Marque industrielle (B to B)</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-28"><label for="ecomarketing_functions" class="control-label gcore-label-top gcore-label-checkbox">Quelles sont les fonctions économique et marketing de ma marque ?</label>
<div class="gcore-input-wide gcore-display-table" id="fin-ecomarketing_functions"><div class="gcore-single-column" id="fclmn27"><div class="gcore-checkbox-item" id="fitem22"><input name="ecomarketing_functions[]" id="ecomarketing_functions21" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="1" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions21">Fonction transactionnelle</label></div>
<div class="gcore-checkbox-item" id="fitem24"><input name="ecomarketing_functions[]" id="ecomarketing_functions23" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="2" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions23">Fonction relationnelle et identitaire</label></div>
<div class="gcore-checkbox-item" id="fitem26"><input name="ecomarketing_functions[]" id="ecomarketing_functions25" class="A" title="Quelles sont les fonctions économique et marketing de ma marque ?" style="" data-load-state="" data-tooltip="" type="checkbox" value="3" />
<label class="control-label gcore-label-checkbox" for="ecomarketing_functions25">Fonction aspirationnelle</label></div></div></div></div><div class="form-group gcore-form-row" id="form-row-29"><div class="gcore-input gcore-display-table" id="fin-button10"><input name="button10" id="button10" type="submit" value="Enregistrer" class="form-control A" style="" data-load-state="" /></div></div>