Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

webapp survey

Avatar

Avatar
Level 1
dimitriosc21803
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
dimitriosc21803
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
dimitriosc21803
Level 1

05-11-2020

Hello All,

I am wondering if someone of you knows how to limit the responses on a survey web app.

I want to create one that can store up to 100 responses no more, and then to redirect to the end activity.

Do have any idea how I can do that with a javascript or from any other activity?

 

Thanks a lot in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Employee
Shivam_Singh
Employee

Likes

4 likes

Total Posts

12 posts

Correct Reply

4 solutions
Top badges earned
Give Back 3
Give Back
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Give Back 3
Employee
Shivam_Singh
Employee

Likes

4 likes

Total Posts

12 posts

Correct Reply

4 solutions
Top badges earned
Give Back 3
Give Back
Boost 3
Boost 1
Affirm 3
View profile
Shivam_Singh
Employee

11-11-2020

There can be a custom solution to this. You can use a counter in JS to store the number of responses that have been received (After the survey page and before the end activity as depicted by Script 2 in the diagram below). You can store this count in a global variable (option) by using the setOption() method.

 

shivams_0-1605103267528.png

 

Now every time the survey is opened, you can add a JS validator (Script 1 in the above diagram ) that checks the current survey count from the option that you set earlier (using getOption() method). If it's less than 100, you can update a boolean variable and then use a test activity to validate the boolean and trigger the survey page or the End activity as per its value.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

821 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

821 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile
Sukrity_Wadhwa
Employee

17-11-2020

Hi @dimitriosc21803,

Was the given solution helpful to resolve your query? Do let us know.

Thanks!