Pre-loading activity for Webapp | Community
Skip to main content
Level 5
October 16, 2024
Solved

Pre-loading activity for Webapp

  • October 16, 2024
  • 1 reply
  • 634 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ccg1706

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 

1 reply

ccg1706
Community Advisor
ccg1706Community AdvisorAccepted solution
Community Advisor
October 19, 2024

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