I posted very briefly about this around 2 years ago with the promise that I’d write a second more detailed post. This never happened, but its still one of the things I use all the time. And now Geneva has come along, there’s actually a slight ‘hack’ that’s needed to get it working really properly.
So just to recap, when creating a custom UI macro, to make it work a lot nicer, you should always add this input field to it:
<input id=”$[jvar_question_name]” style=”width:50%” name=”$[jvar_question_name]” value=”” class=”cat_item_option questionsettext”/>
What this would do is let g_form.setDisplay and g_form.setMandatory work with the UI macro. It would also save the value to the database as per any other variable.
Simple enough, but what does this actually do?