Page 1 of 1

Check-box does not render when the value from the REST response is false

Posted: Thu Oct 24, 2013 5:15 pm
by supriya hirurkar

Hello, I spent a lot of time over this issue but dont seem to get the solution.
I have a checkbox on the page and a REST response decides whether it is checked or not. When the response is true, the checkbox renders (with the check mark which is right) but it does not render at all when the response is false. I still want it to render with no check mark. Please help.


Check-box does not render when the value from the REST response is false

Posted: Thu Oct 24, 2013 5:48 pm
by Kateryna Grynko

Hi Supriya,

Please post screenshots of your service mapping and response.


Check-box does not render when the value from the REST response is false

Posted: Thu Oct 24, 2013 7:29 pm
by supriya hirurkar

Well, got it working and it is much simpler now.
Set the Boolean value from REST response to a local variable and then used that value to set my check box checked and unchecked.
Thanks anyway!


Check-box does not render when the value from the REST response is false

Posted: Thu Oct 24, 2013 7:30 pm
by Kateryna Grynko

Supriya,

Glad it's working!