now, with 2.6.10 I've added a placeholder for the rendered formElement.
I was able to let float for example this three dynamic-dropdown-TVs with this configuration:
{
"MIGX_id":2,
"field":"line_id",
"caption":"Belongs to Product Line:",
"description":"[[$migx_input_float? &field=`line_id`]]",
"description_is_code":1,
"inputTV":"productlines",
"inputTVtype":"",
"validation":"required",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"[]",
"inputOptionValues":"",
"default":""
},
{
"MIGX_id":3,
"field":"grp_id",
"caption":"Product Group",
"description":"[[$migx_input_float? &field=`grp_id`]]",
"description_is_code":1,
"inputTV":"productgroups",
"inputTVtype":"",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"[]",
"inputOptionValues":"",
"default":""
},
{
"MIGX_id":10,
"field":"colors",
"caption":"Color Group",
"description":"[[$migx_input_float? &field=`colors`]]",
"description_is_code":1,
"inputTV":"colorgroups",
"inputTVtype":"",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"[]",
"inputOptionValues":"",
"default":"",
{
"MIGX_id":14,
"field":"clear",
"caption":"",
"description":"<br class=\"clear\">",
"description_is_code":1,
"inputTV":"",
"inputTVtype":"",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"[]",
"inputOptionValues":"",
"default":""
}
}
the chunk 'migx_input_float'
[[migxJsonToPlaceholders? &prefix=`tv.` &value=`[[+tv_json]]`]]
<div style="float:left;">
<label for="tv[[+tv.id]]" class="x-form-item-label modx-tv-label" style="width: auto;margin-bottom: 10px;">
<div class="modx-tv-label-title">
<span class="modx-tv-caption" id="tv[[+tv.id]]-caption">[[+tv.caption]]</span>
</div>
</label>
<div class="x-form-clear-left"></div>
[[+tv_formElement]]
</div>
you need a unique footprint for each chunk, otherwise modx would allways use the parsed code of the first chunk
that's the whole reason for:
[ed. note: Bruno17 last edited this post 9 years, 11 months ago.]