Set Datepicker, checkboxes, Dropdown and multiple choice to disabled

Home Forums Quform WordPress Set Datepicker, checkboxes, Dropdown and multiple choice to disabled

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22729
    jerkski
    Participant

    Hello, I have a form that populates from my database. I am using it solely for the purpose of resending the email with the form data. SO that the users do not edit any information after the form loads the data, I have chosen to make all fields read-only. I am using the following to disable input in text fields:

    <script>
    jQuery(document).ready(function ($) {
    $(‘.iphorm_5_195’).prop(‘readonly’, true);
    </script>

    How can i do the same for Datepicker, checkboxes, Dropdown and multiple choice fields? I tried the same thing and it had no effect on the fields. Then I tried something similar, but the form does not recognize that the values exist when they are required. Here is what I tried:

    <script>
    jQuery(document).ready(function ($) {
    $(‘.iphorm_5_195’).attr(“disabled”, true);
    </script>

    Thoughts on how to do this?

    #22785
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy