Customize Label Text for Yes/No Field


I have a list control with inline editing. There is a Yes/No field which the default label text is On/Off.


Is there a way to customize the label text to Yes/No for the inline editing field just like the control property?


Thank you in advance for your help!

Dear @COR6603,
Please, try the following JavaScript code:

fd.spRendered(function() {
    fd.control('SPDataTable1').$on('edit', function(row) {
        row.field('Bool').widgetOptions = { messages: {checked: "Yes", unchecked: 'No'}}

Works perfectly! Thank you much!

1 Like