Regarding Date type of questions

0

Hi team, I am facing an issue with the date type of questions I don’t want the response to enter the date manually it should be selected by the calender icon only which is present there I just want to restrict the responders to enter the date manually.For reference you can check my SSD Survey.

Lola Gill answered
    0
    Lola Gill 6.84K Rep.

    This is not a built in option in SurveyGizmo, but could be done with JavaScript if you have access to this feature (it requires a Pro Plan or higher).

    I have used the following code in the past:

    $(document).ready(function(){
    $(“#id of text element”).attr(“disabled”,””);
    });

    You would need to replace the “id of text element” above¬†with the actual ID of the textbox associated with your date question:

    https://script.surveygizmo.com/help/article/link/how-to-find-element-ids-to-use-with-javascript

    I would also recommend providing some explicit instructions for your survey respondents so that they are not confused by not being able to click into the box.

    I hope this helps!

    Lola Gill commented
      • Use this instead:

        $(document).ready(function(){
        $(“#id of text element”).attr(“readonly”,””);
        });

        note “readonly” instead of “disabled”

      ×

      Login

      Question stats

      • Active
      • Views507 times
      • Answers1 answer
      • Followers1 follower