• Resolved Denis Lam

    (@spiffyd)


    I have a question regarding placeholders and default values of fields.

    Some fields elements I’m working with such as the Product Pricing field does not come with a setting to enter a default value. So that’s why Gravity Forms HTML5 Placeholders comes handy.

    However, a placeholder is not treated as a default value. If the field is required, during submission, user will still be prompted to enter a value despite having a visible placeholder.

    Any idea how to make the placeholder value for this example the default value?

    https://www.ads-software.com/plugins/gravityforms-html5-placeholders/

Viewing 1 replies (of 1 total)
  • Plugin Author iSoftware

    (@isoftware)

    Dear Denis,

    Placeholders are not default values. The only way you can have default values is either by using Gravity Forms build in hooks to modify the field values that you are interested before rendering the form, or processing your field input on submit to fill in empty values.

    Either way requires some bit of code and perhaps you should use select options instead with default values and other for customized for your needs.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Placeholders vs. Default Values’ is closed to new replies.