The Product Field allows the creation of products in the form. There are several options for the type of field that should be used for the Product Field: Single Product, Drop Down, Multiple Choice and User Defined Price.
Properties
- Field Label
- Enter the label of the form field. This is the field title the user will see when filling out the form.
- Field Type
- Select the type of field from the available form fields.
- Single Product
- The Single Product field type will display the price and a quantity field by default (example).
- Drop Down
- The Drop Down field type will display as a drop down field on your form. When this option is selected, the Product Properties tab will refresh with options to specify multiple products (example).
- Multiple Choice
- The Multiple Choice field type will display as a field of radio buttons on your form. When this field type is selected, the Product Properties tab will refresh with options to specify multiple products (example).
- User Defined Price
- The User Defined Price field type will display as a single line input on your form (example).
- Price
- Enter the base price for this product.
- Disable Quantity Field
- Disables the quantity field. A quantity of 1 will be assumed or you can add a Quantity field to your form from the Pricing Fields.
- Description
- Enter the description for the form field. This will be displayed to the user and provide some direction on how the field should be filled out or selected.
Advanced
- Admin Label
- Enter the admin label of the form field. Entering a value in this field will override the Field Label when displayed in the Gravity Forms administration tool.
- Field Size
- Select a form field size from the available options. This will set the width of the field. This option is only available when the Drop Down field type is selected.
- Validation Message
- If you would like to override the default error validation for a field, enter it here. This message will be displayed if there is an error with this field when the user submits the form. This option is only available when the Drop Down or Multiple Choice field type is selected.
- CSS Class Name
- Enter the CSS class name you would like to use in order to override the default styles for this field.
- Visibility
- Select the visibility for this field. Field visibility set to Everyone will be visible by the user submitting the form. Form field visibility set to Admin Only will only be visible within the Gravity Forms administration tool. Setting a field to Admin Only is useful for creating fields that can be used to set a status or priority level on submitted entries.
- Allow field to be populated dynamically
- Check this option to enable data to be passed to the form and pre-populate this field dynamically. Data can be passed via Query Strings, Shortcode and/or Hooks.
- Enable Conditional Logic
- Create rules to dynamically display or hide this field based on values from another field. Remember, to use conditional logic, you will need to create a drop down, checkbox or multiple choice field.