The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Hi,
Prior to the last release we were using custom JS to set some common checkbooxes to style.display=none, insert our own replacement dropdown box that when clicked on would 'check' the underlying checkbox. We were using .checked = true; to set the checkbox.
It appears that you are now using svg tags to indicate the the checkbox is checked and .checked = true has no effect of the submitted value. How can we set a check box so the custom_field result is submitted and retrievable via the user_registrations? API.
Regards,
Simon
Hi Simon. You can use the HTML DOM `click()` method https://www.w3schools.com/jsref/met_html_click.asp. You should just need to get a handle in the `input` element, and call that `click` method in your custom JS.
@jfenton and @canvas_support6 is there a way to remove the Privacy Policy?
Thanks Jon,
That worked.
Have you figured out how to get rid of the privacy policy during registration?
Hi Jessica,
I have not worked direct on this. But I think the Catalog Terms of Use and Privacy Policy is a legal requirement. It is probably possible to obtain the element, set the display to none and use click() to check this box, but if you don't have an agreement with the user that covers these conditions then you will enter into legal issues.
Simon
This is something set by Instructure -- right @jfenton ? I have never had this on our registration page before the update with the JS.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.