I’m using custom data options for a select filter on datatable. For example:
options = { 1 : 'Yes', 2 : 'No' };
I’m binding datatable to a htmlform
with setValues
. In datatable, the raw values are replaced with ‘yes/no’. In the form, the values for this column is shown as 1,2, etc. which is normal since those are actual values. But is there anyway to get the ‘yes/no’ value? Will save some logic if this is already returned somewhere.