How to make Percentage widget read-only?

  • ebuabua
    Asked on February 18, 2017 at 7:22 PM

    Is there any way that I can control the percentage widget and make it disabled for the form viewer so that they can only see it instead of being able to edit it?

     

    Thanks!

  • Nik_C
    Replied on February 19, 2017 at 6:57 AM

    You would like to make it read-only if I understood you completely?

    If that's the case you can copy and paste the below CSS in your Custom CSS field:

    #customFieldFrame_17{

      pointer-events: none;

    }

    That will make your Percentage widget read-only. 

    If you had something else in mind, please let us know.

    Thank you!

  • Nik_C
    Replied on February 19, 2017 at 8:58 AM

    Please check this screencast I made:

    How to make Percentage widget read only? Image 1 Screenshot 20

    It is working fine in Preview mode as well, as you can see, I'm unable to click the Percentage widget. Or you would like to do something else?

    We'll wait for your response.

    Thank you!

  • ebuabua
    Replied on February 19, 2017 at 9:33 AM

    Can I set a percent and then have it displayed as read only?  It seems like the percentage keeps resetting to 0%

  • Ashwin JotForm Support
    Replied on February 19, 2017 at 11:58 AM

    Hello ebuabua,

    I am not sure if I have understood your question correctly. Do you mean to say that you want to allow users to set a percentage and then make it read only?

    Unfortunately it is currently not possible to keep your "Percentage" widget to be enabled and the disable it once the percentage is selected. I will do further tests and see if there is any workaround available with conditions.

    Thank you!