Expand my Community achievements bar.

SOLVED

Pre-loading activity for Webapp

Avatar

Level 6

Preloading Activity

Can I use the preloading activity to check if a user has already submitted a response in the custom schema I’ve created, and then redirect them to a "Thank You" page?

To achieve this:

  • Should I be using the Preloading activity, Test activity, or JS activity?

In my schema, I have the columns EmailAddress, Feature_1, Feature_2, and Feature_3. I need to verify if the user with a given email address has responded for a specific feature, and if so, redirect them to the "Thank You" page.

Could you please suggest the best approach for this?

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi @rvnth

 

I would suggest to  use the preload activity to check if a user has submitted a response based on their email address. Configuring it to query the custom schema where the submissions are stored. This will allow you to fetch relevant data and store it in workflow variables.

 

Afterwards, use a Java Script activity to check the values of the variables to determine if the user has submitted a response. If so, redirect them to the "Thank You" page.

 

Here I share with you some useful documentation links, for you to check:

-Examples of JavaScript code in workflows 

-JavaScript and scripts and templates 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

Hi @rvnth

 

I would suggest to  use the preload activity to check if a user has submitted a response based on their email address. Configuring it to query the custom schema where the submissions are stored. This will allow you to fetch relevant data and store it in workflow variables.

 

Afterwards, use a Java Script activity to check the values of the variables to determine if the user has submitted a response. If so, redirect them to the "Thank You" page.

 

Here I share with you some useful documentation links, for you to check:

-Examples of JavaScript code in workflows 

-JavaScript and scripts and templates