Hi,
In reality it is not possible to define the additional attributes of the drop down choices through the forms builder, however, you can get it with some additional code.
For example, if you add a custom class name to the field, for example: “my-field”, through the attribute: “Add Css Layout Keywords”, and then inserting a “HTML Content” field in the form, with a code similar to the following one, as the field’s content:
<script>
custom_attr = [
{sectionid:1,massageid:1,massagetime:'qwerty',massageprice:'asdfg'},
{sectionid:2,massageid:2,massagetime:'sdfgsf',massageprice:'sdfgs'},
{sectionid:3,massageid:3,massagetime:'cxvbx',massageprice:'rtert'}
];
fbuilderjQuery(document).one('showHideDepEvent', function(){
var $ = fbuilderjQuery;
$('.my-field option').each(function(index){
var e = $(this);
if(typeof custom_attr[index] != 'undefined' )
{
e.attr('data-sectionid', custom_attr[index]['sectionid']);
e.attr('data-massageid', custom_attr[index]['massageid']);
e.attr('data-massagetitle', e.text());
e.attr('data-massagetime', custom_attr[index]['massagetime']);
e.attr('data-massageprice', custom_attr[index]['massageprice']);
}
});
});
</script>
Best regards.