COR6603
1
Hello,
I have a list control with inline editing. There is a Yes/No field which the default label text is On/Off.
![image](https://community.plumsail.com/uploads/default/original/2X/6/68d92084b818ea7edd42d2abc1b8b3a5f0cfc7a1.png)
Is there a way to customize the label text to Yes/No for the inline editing field just like the control property?
![image](https://community.plumsail.com/uploads/default/original/2X/8/88c38c28073c1d572b40613229937719cadadeda.png)
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'}}
});
});
COR6603
3
Works perfectly! Thank you much!
1 Like