dropdown code

agostinopol 30 Sep, 2016
I modify a field with textbox, the code is

<label>Fascia</label><input type="text" class="form-control" name="gestione[fascia]" /><br />


i would like to modify a field with dropdown, that code should I enter ?? thx
GreyHead 30 Sep, 2016
Hi agostinopol,

I think that the standard HTML for a drop-down is what you need.

Bob
agostino87 18 Oct, 2016
I use this code

<div class="form-group gcore-form-row" id="form-row-scelta"><label for="scelta" class="control-label gcore-label-left">titolo scelta</label>
<div class="gcore-input gcore-display-table" id="fin-scelta"><select name="scelta" id="scelta" size="" class="form-control A" title="" style="" data-load-state="" data-tooltip="">
<option value="ciao">good</option>
<option value="bye">bye</option>
<option value=""></option>
</select></div></div>


the problem is that the dropdown does not display the data stored in the database, how can I fix?
GreyHead 18 Oct, 2016
Hi agostino87,

What data stored in the database - you haven't mentioned that before??

Bob
agostino87 18 Oct, 2016
yes, I want to change the data stored in the database with a dropdown, but any code I try dropdown does not display the data in the database as the main figure of the dropdown
GreyHead 18 Oct, 2016
Hi agostino87,

Please explain exactly what you need to do - my mind-reading is failing today :-(

Bob
agostino87 18 Oct, 2016
I insert data in the dropdown with CF5, I view with CC5, I want to edit this data with dropdown. I do not know how to do it using the classic html code of dropdown, do not read the data in the table😟

I apologize for my poor english
GreyHead 18 Oct, 2016
Hi agostino,

Thank you - have you tried this:
<select name="gestione[scelta]" id="gestione_scelta"  >
  <option value="ciao">good</option>
  <option value="bye">bye</option>
  <option value=""></option>
</select>

Bob
agostino87 18 Oct, 2016
yes, i tried but does not display the data stored in the field
GreyHead 18 Oct, 2016
Hi agostino87,

Please turn on the CC Debugger and post a link to the listing so that I can have a look.

Bob
agostino87 19 Oct, 2016
dropdown code

<select name="gestione[numeroddt]" id="gestione[numeroddt]"  >
  <option value="good">good</option>
  <option value="bye">bye</option>
  <option value=""></option>
</select>


debug form CC

Array
(
    [0] => SELECT `Extension`.`id` AS `Extension.id`, `Extension`.`name` AS `Extension.name` FROM `sat_chronoengine_extensions` AS `Extension` WHERE `Extension`.`enabled` = '1' ORDER BY `Extension`.`ordering` ASC
    [1] => SELECT `Connection`.`id` AS `Connection.id`, `Connection`.`title` AS `Connection.title`, `Connection`.`params` AS `Connection.params`, `Connection`.`extras` AS `Connection.extras`, `Connection`.`published` AS `Connection.published` FROM `sat_chronoengine_connections` AS `Connection` WHERE `Connection`.`title` = 'assistenza' AND `Connection`.`published` = '1'
    [2] => SELECT `gestione`.`id` AS `gestione.id`, `gestione`.`uniq_id` AS `gestione.uniq_id`, `gestione`.`user_id` AS `gestione.user_id`, `gestione`.`created` AS `gestione.created`, `gestione`.`modified` AS `gestione.modified`, `gestione`.`codiceutente` AS `gestione.codiceutente`, `gestione`.`mail` AS `gestione.mail`, `gestione`.`datapratica` AS `gestione.datapratica`, `gestione`.`contatto` AS `gestione.contatto`, `gestione`.`prodotto` AS `gestione.prodotto`, `gestione`.`descrizionedifetto` AS `gestione.descrizionedifetto`, `gestione`.`manifestazionedifetto` AS `gestione.manifestazionedifetto`, `gestione`.`datigaranzia` AS `gestione.datigaranzia`, `gestione`.`numeroddt` AS `gestione.numeroddt`, `gestione`.`dataddt` AS `gestione.dataddt`, `gestione`.`datascontrino` AS `gestione.datascontrino`, `gestione`.`scontrino` AS `gestione.scontrino`, `gestione`.`dichiarazione` AS `gestione.dichiarazione`, `gestione`.`garanzia` AS `gestione.garanzia`, `gestione`.`statolavorazione` AS `gestione.statolavorazione`, `gestione`.`ritiromerce` AS `gestione.ritiromerce`, `gestione`.`dettagliritiro` AS `gestione.dettagliritiro`, `gestione`.`soluzione` AS `gestione.soluzione`, `gestione`.`tipoassistenza` AS `gestione.tipoassistenza`, `gestione`.`costo` AS `gestione.costo`, `gestione`.`dataarrivo` AS `gestione.dataarrivo`, `gestione`.`manager` AS `gestione.manager`, `gestione`.`agente` AS `gestione.agente` FROM `sat_atala_assistenza` AS `gestione` WHERE `gestione`.`id` = '4'
)


debud save record

Array
(
    [0] => SELECT `Extension`.`id` AS `Extension.id`, `Extension`.`name` AS `Extension.name` FROM `sat_chronoengine_extensions` AS `Extension` WHERE `Extension`.`enabled` = '1' ORDER BY `Extension`.`ordering` ASC
    [1] => SELECT `Connection`.`id` AS `Connection.id`, `Connection`.`title` AS `Connection.title`, `Connection`.`params` AS `Connection.params`, `Connection`.`extras` AS `Connection.extras`, `Connection`.`published` AS `Connection.published` FROM `sat_chronoengine_connections` AS `Connection` WHERE `Connection`.`title` = 'assistenza' AND `Connection`.`published` = '1'
    [2] => SELECT COUNT(`gestione`.`id`) AS `gestione.count` FROM `sat_atala_assistenza` AS `gestione`
    [3] => SELECT `gestione`.`id` AS `gestione.id`, `gestione`.`codiceutente` AS `gestione.codiceutente`, `gestione`.`mail` AS `gestione.mail`, `gestione`.`datapratica` AS `gestione.datapratica`, `gestione`.`contatto` AS `gestione.contatto`, `gestione`.`prodotto` AS `gestione.prodotto`, `gestione`.`descrizionedifetto` AS `gestione.descrizionedifetto`, `gestione`.`manifestazionedifetto` AS `gestione.manifestazionedifetto`, `gestione`.`datigaranzia` AS `gestione.datigaranzia`, `gestione`.`numeroddt` AS `gestione.numeroddt`, `gestione`.`dataddt` AS `gestione.dataddt`, `gestione`.`datascontrino` AS `gestione.datascontrino`, `gestione`.`scontrino` AS `gestione.scontrino` FROM `sat_atala_assistenza` AS `gestione` LIMIT 30
)
GreyHead 19 Oct, 2016
Hi agostino87,

Please turn on the CC Debugger and post a link to the listing so that I can have a look.

Bob
agostino87 19 Oct, 2016
listing
http://assistenza.atala.it/index.php?option=com_chronoconnectivity5&view=connection&Itemid=165

CC5 - dropdown befor save button (the data saved in the database has a field number, "numeroddt" list field)
http://assistenza.atala.it/index.php?option=com_chronoconnectivity5&cont=lists&ccname=assistenza&act=edit&Itemid=165&gcb=4

thank you

This is private content

agostino87 28 Oct, 2016
despite a thousand attempts, I can not make this dropdown, it does not return the value of the database. I could go crazy😟
GreyHead 21 Nov, 2016
Hi agostino87,

I get error messages from both the links you posted :-(

Bob
agostino87 21 Nov, 2016
1 Likes
Hi Grey,
i solved using chroonoconnectivity, in edit I inserted the code created by CF5 and modified in the name with "[modelID] namedropdown"

This solution is used to upload to CC data on dropdown and radio box and then modify them

hopefully it will be of help to many this solution
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger