Is it possible to conditionally trigger the Google Calendar integration?

  • emucoe
    Asked on January 18, 2020 at 5:18 PM

    It *is* possible to create a condition where the Google Calendar won't be populated unless the item is approved.

    1. If you are having the item be approved, create date fields in the approval area that match the date fields used by the the person originally filling out the form.

    2. Create conditional logic, where those matching fields only populate if "approved" is selected.

    3. In the Google calendar integration setup, link those matching date fields to the Google calendar, rather than the date fields filled in by the person initially making the request.

    The only hiccup in this seems to be:

    Even though I have the duplicate fields hidden, they still display in the approval area.

  • Kevin Support Team Lead
    Replied on January 18, 2020 at 8:53 PM

    Unfortunately, it's not possible to conditionally trigger an integration, as an alternative, you may add an additional date picker element that will pass the date to Google Calendar and then conditionally fill this field. 

    Here are the steps: 

    1. Add the new date picker field to your form and select this on the integration settings, you can edit the integration under the settings tab of the form builder and clicking on the integrations section.

    2. Set up a condition to copy the value from the user selected date to the second one you've added. This needs to be based on the approval field, this guide will help you copying data from one field to another: https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field 

    This will send the data to Google Calendar as long as the date field is filled, no matter if you're editing the condition or first submitting the form.

    Please kindly give it a try and let us know if you have questions. 

    Thanks.