hi,i have a table with 3 fields of type List dropdown (who use lookup table content). each field are not required.
In the creation mode (add ), i want them to be auto-selected with the first item in the list.
is there a way to perform that ?Phpmaker application have a field in table setup for default value of each field where we can add an php expression.
As i don’t know the id of the first item available, is there an php expression to select the first row (or the first availabe id) in the list by default ?Or maybe i can do the autoselect that in JavaScript with client script at startup. but i already tried to select all the list component with jquery and i always failed (because of the flex form framework i guess…).$(‘select option:first-child’).next().attr(“selected”, “selected”); //not workingSo what will you do in my place ?
Did you use select2 control instead os select native control? If so, then you may Google select2 select first option for your references.
You may search “updatedone” in this forum and the docs.
thank you,
i understand the way how ‘updatedone’ works now, each field name is concatenated with “x_”.Best regards