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

Popup Message on Initial Form Submission

Avatar

Avatar
Validate 1
Level 2
berlink0304
Level 2

Likes

3 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
berlink0304
Level 2

Likes

3 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
berlink0304
Level 2

17-01-2018

I am trying to have a message appear on the initial submission of a form.  For subsequent Task Operations, I have the ability to give User Actions, where I can have a message display when they press Submit (or other actions).

I do not have that option though for the initial submission of the form. 

Where would you place JS to run when a user clicks submit?  What is the location of that button?

I am using 6.1

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

28-01-2018

You could also create a custom form component that is the modal and hide/show it based on your javascript.

The javascript code can either be added on your submit button using the rules editor as well as calling guideBridge.submit().

Or you could add code to a cilent library and listen for the submitStart event e.g.

window.addEventListener("bridgeInitializeStart", function (evnt) {

   var gb = evnt.detail.guideBridge;

   //wait for the completion of adaptive forms
   gb.connect(function () {

   //this function will be called after adaptive form is initialized

   gb.on("submitStart", function (event, data) {

  });

  })

});

Answers (2)

Answers (2)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-01-2018

Nice response James - we marked this a correct

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

17-01-2018

YOu can also create a custom form component that is only a button and style it with CSS and then have JS that can produce a popup message.