Update Slider Value by URL Parameter

  • Profile Image
    nickbh
    Asked on September 06, 2015 at 08:19 AM

    Hi,

     

    Anyone know if there is a slider control that

     

    A) You can set to a value by passing a parameter through URL

    B) Make read only once the value is set.

     

    I am trying to use a slider to show a review value of a customer.  I would have used the stars rating but already understand that its not possible to pass a value to it via URL or indeed make it Read only - hence trying with a slider?

    I may have a workaround- I may have to use images and conditional formulas and show the image closes to a value passed to a hidden field.

     

    EG for starts 1-5 I have five pictures.

     

    I pass a value to a hidden field (between 1 and 5).  Conditionally I show the right number of start as the image.

    Thanks

    Nick

     

  • Profile Image
    jonathan
    Answered on September 06, 2015 at 02:05 PM

    Hi Nick,

    From what I have test so far, you can do pre-populate fields from the Survey tools via the URL parameter value.

    Example form: http://www.jotform.me/form/52485848255467?scale=4&star=3&sliderwidget=35

     

    BUT the only way to make the fields become Read-Only is by using the form's source code and use javascript code to make them  read-only.

    I workaround I could think of is to use a hidden field that actually contains the same value as the set value of the slider field. Use the value of the hidden field instead of the slider field in the form submissions.

    So even though the end-user can change the slider value visually in the form, once submitted the value is fixed already and cannot be altered.

    Hope this help. Let us know of your feedback on this.