Forum

Thread tagged as: Question, Problem, Api

Unable to set checkbox to profile page load

Hi,

I am able to send checkbox state i.e. "on" or '''off" to backend using hidden fields. I have checked in DB.

On page load profile form having text fields and email field are filling but its not updating checkbox.

Also I don't know how to update checkbox, i can't find it in DOM.

I hope some one can answer soon.

Regards kuljeet

Vinay Jagessar

Vinay Jagessar 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you would like us to help we need to see:

a) your template b) your Diagnostics Report

You would have been asked for these when creating the thread.

I am able to update to server and set checkbox. When submitting form in php file: if the check box is not checked, set its value to 'off' and in html value ="on' by default.

However i am unable to set the check box by default. There is some problem with perch:input tag that don't allow to set check box by default. Please suggest