force string "empty" for all possible responses in a survey

  • integratedneuro
    Asked on September 20, 2018 at 3:12 PM

    Hello Jotform support team,

    Individual fields have options to save empty responses with a specific string. Is there a way to set all fields to have a specific text entry whenever they are empty ... automatically via code in the CSS for the whole Jotform ? 

    If so, is there an example ? Any suggestions appreciated.

    thank you!

  • Kevin Support Team Lead
    Replied on September 20, 2018 at 4:00 PM

    Some fields have the option to set a placeholder which will be displayed as long as the field is empty: 

    1537473550screenshot 01 Screenshot 10

    CSS does  not actually handle place holders, it will only allow to style it, to force placeholder  on those elements that do not have this option you would need some JavaScript code which is not allowed on the builder, but you may download the source code of your form and implement your own code. 

  • integratedneuro
    Replied on September 20, 2018 at 4:12 PM

    Thanks Kevin, much appreciated. I see, some JS outside the form would be necessary.

    However, please note there seems to be another option I see in some field's optons, which is not the placeholder property, but an option to specify a string that is saved if the cell is going to be empty in the data, due to no response on that item/field. 

  • Richie JotForm Support
    Replied on September 20, 2018 at 4:54 PM

    Are you referring to the default value?

    force string empty for all possible responses in a survey Image 1 Screenshot 20

    This field doesn't necessarily needs a string but any value that you want to pass to your field.