Most use cases involve non-logged in users. However, there are some instances where the user might already be logged in. In these cases, forcing the user to enter an email address in order to map to the ticketing system seems redundant. Instead, you can create a hidden EMAIL field on the Gravity form and pre-populate it with one of the numerous Gravity Forms Merge Tags; in this case, just set the default for the field to be {user:user_email}
So, your Gravity Forms email field configuration will look like this:
Then, simply map the email field as usual in the Awesome Support Gravity Forms Extension screen.
Generally, the easiest way to map the Department Products field is to use the POPULATE option. Here are some ways to make sure you end up with the correct value in the mapped field:
If you’re a developer you can easily use the contents of custom fields to trigger code inside of Awesome Support. The general process is:
In version 1.1.0 of the Gravity Forms Bridge we added an example inside the core bridge code. We created a field called gf_close_ticket using the WP init hook. You can see this if you search for the function register_field_close_ticket in the class-gravity-forms.php file.
We then added a function called maybe_close_ticket that uses this the contents of this field to determine whether or not to close the ticket. Search for it in the class-ticket.php file.