Checkbox not reflecting the passed boolean value in the desi

Posted by Community Admin on 05-Aug-2018 19:25

Checkbox not reflecting the passed boolean value in the designer

All Replies

Posted by Community Admin on 01-Dec-2016 00:00

I have a custom MVC widget for which I created a custom designer which has 1 textbox and 2 checkboxes. I want to pass default values to the designer which should be shown in the designer whenever the user drags the widget to the page and clicks edit . I am able to successfully display the default value in the text box but the checkboxes are not showing the default values I am passing from the controller. 

 

// this is how I am binding the controller boolean field showContactInfo in the designer.js file

 jQuery(this.get_showContactInfo()).attr("isChecked", controlData.showContactInfo );

Please let me know asap.

Posted by Community Admin on 20-Sep-2017 00:00

I am also facing the same issue? anybody have a solution for this .

 

Basically I have a check box in the designer and I want the it's checked value to be set on the corresponding controller property.

This thread is closed