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

Users can submit forms with empty required fields

Avatar

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile
SeanLapointe
Level 2

20-05-2021

Hello,

 

I have an adaptive form with about two dozen fields that are marked as required fields, yet somehow I have users that are able to submit their form when some of these fields are empty. I have submitted hundreds of test forms in our test and production environments and am unable to replicate this behaviour.

 

Does anyone have any suggestions on potential solutions, or avenues of investigation that I can pursue for this issue?

Replies

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

20-05-2021

@SeanLapointe 

It will be interesting to check what steps these users are following to submit the form. Possible reasons could be browser version, mode of rendering the form, or maybe a difference in user permissions.

I can get on a call with you to check further, please DM the details.

Avatar

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile
SeanLapointe
Level 2

20-05-2021

Thanks, I will dm you  shortly.

 

I am not sure about the browser version of the users, but the form is an adaptive HTML form that is rendered when a task is started in a JEE workflow through the Workspace UI. The clients all have the same permissions.

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

25-05-2021

@SeanLapointe For the users who are able to submit try to get the dataxml and prefill and see what is causing the form to break. Force the validation on submit again in the form and see if the issue persists. 

Avatar

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile
SeanLapointe
Level 2

25-05-2021

Unless I am wrong, the prefill is what is generated and added to the form before the it is rendered and the dataxml is the data that the user submits, right? The prefill does not generate any information for the required fields and the dataxml is missing the information that the user is not adding to the form.

 

The form is not breaking. I have a stored procedure that inserts the form data to our financial database that is executed after the form is submitted. Since some of the required fields are empty, the SP fails to execute.

 

How would I re-route the form if the fields are empty, just assign a task to the submitter and use the dataxml to fill the form? This is staring to sound like a lot of work for something that shouldn't be happening in the first place.

 

FYI, for those following along, all my users are using the same version of Microsoft Edge and our page loads in Edge's IE 11 mode.

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

27-05-2021

@SeanLapointe If there are missing elements in prefill and the fields marked as required are not filled then also the form will fail to submit(ideally).

 

 

Avatar

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile

Avatar
Boost 5
Level 2
SeanLapointe
Level 2

Likes

6 likes

Total Posts

49 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Give Back 10
Validate 1
Ignite 3
Ignite 1
View profile
SeanLapointe
Level 2

28-05-2021

The empty fields are all marked as "required" and 99.5% of the time, the form alerts users to the empty fields and fails to submit. It's the .5% that fails that concerns me. If this happened only once or twice a year, I wouldn't worry about it, but it happens once or twice a week.

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

29-05-2021

@SeanLapointe Your best bet is to put a server-side validation to prevent any logic bypass from the client. 

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

29-05-2021

@SeanLapointe If you can get the data XML that would be more beneficial. 

 

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

31-05-2021

@SeanLapointe Thanks for explaining the issue further over call! 

One of the things worth checking is the pattern of fields (if there is one) that were selected each time by those users when the validation was bypassed on submission.

 

Meanwhile, as requested, could you please raise a ticket with support so that we can troubleshoot the issue further.