Skip to content

Plugin Functionality

Taija Tevia-Clark edited this page Feb 24, 2015 · 2 revisions

Allow field to be populated with dynamically with Bellevue College data

You can pre-populate form fields with data from the Bellevue College ODS by adding a parameter to the Field Parameter Name field.

  1. Edit a field in the Gravity Forms Form Editor
  2. Click the advanced tab
  3. Check the “Allow field to be populated dynamically” checkbox
  4. Add one of the following parameter names to the “Field Parameter Name” section
    • bc_sid
    • bc_first_name
    • bc_last_name
    • bc_email
    • bc_dayphone
    • bc_evephone
  5. Click Update Form

Make a field read-only

If you would like to display a field of a form but not allow a user to edit that field, you can add 'readonly' (without the quotes) as a CSS Class Name.

  1. Edit a field in the Gravity Forms From Editor
  2. Click the Advanced tab
  3. type readonly in the CSS Class Name field.
  4. Click Update Form

Hide a field from users, but still pull in data from ODS

You can add a field to a form that will pull data from the ODS and submit with the form, but not display to the user. You have two options for accomplishing this:

Option 1 - Admin Only:

This will hide the form field from all users except those in the Admin role

  1. Edit an existing field in the Gravity Forms Form Editor
  2. Click the Advanced tab
  3. Select the Admin Only radio button under the Visibility section
  4. Click Update Form

Option 2 - Hidden Field:

This will hide the form completely from all users. The contents of this field will be submitted with the form

  1. Add a new Hidden field (from the Standard Fields list in the Gravity Forms Form Editor)
  2. Click the Advanced tab
  3. Edit the Hidden Field by clicking on it
  4. Click the Advanced tab
  5. Check the “Allow field to be populated dynamically checkbox
  6. Add the appropriate parameter name (see below for a list)

Admin Notifications

User can modify admin notification to include authentication information inside the form in following way:

Create Auth Field:

  1. Add a ‘Single Line Text ’ field to the form. Go to the advanced tab and check checkbox
  2. “Allow field to be populated dynamically”.
  3. Enter value in the Parameter Name field.
  4. The value entered in the Parameter name should match the config constant “IS_AUTH” located in 1. “gf_external_data_fields_config” class (Refer file: EXAMPLE-gravityforms-external-data-fields-config.php)
  5. Add value to ‘IS_VERIFIED_MESSAGE’ and ‘IS_NOT_VERIFIED_MESSAGE’ constants located in “gf_external_data_fields_config” class (Refer file: EXAMPLE-gravityforms-external-data-fields-config.php). These messages will appear in the Authencation field created above.

No Auth Field:

  1. If the user does not create an authentication field, information about user authentication will only be displayed in the admin notification. The form will not have any authentication information.

File Upload Path

Gravity forms store files at a default location.

Eg: /var/www…./wp-content/uploads/gravity_forms/1-360e029abdcd1bab14fa72c4cd896c8a/2014/03

User can change this location by setting the path in the config file.

Set Constants FILE_UPLOAD_PATH and FILE_UPLOAD_URL located in “gf_external_data_fields_config” class (Refer file: EXAMPLE-gravityforms-external-data-fields-config.php) to your file storage path and url respectively.

Only allow login for Employees

  1. After configuring the form for authentication, add allow="employees" to the Gravity Forms shortcode.
  2. To specify a redirect location for non-allowed (student) users, add failure_redirect_url="my_url". If this is unset, the form will redirect to the college homepage.

Example:

[gravityform id="1" name="FYI" title="false" ajax="true"  
authenticate="true" allow="employees" failure_redirect_url="http://www.bellevuecollege.edu/fyi/denied/"]