isRequired option not working on start page
See original GitHub issueAre you requesting a feature, reporting a bug or asking a question?
Bug ?
What is the current behavior?
The field Name on the first page should be mandatory with isRequired set to true. But it is not. You can start quiz without entering your name.
What is the expected behavior?
The field should be mandatory.
How would you reproduce the current behavior (if this is a bug)?
Just run the above Json code.
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
var json = {
title: "American History",
showProgressBar: "bottom",
showTimerPanel: "top",
maxTimeToFinishPage: 10,
maxTimeToFinish: 25,
firstPageIsStarted: true,
startSurveyText: "Start Quiz",
pages: [
{
questions: [
{
type: "html",
html: "You are about to start quiz by history. <br/>You have 10 seconds for every page and 25 seconds for the whole survey of 3 questions.<br/>Please click on <b>'Start Quiz'</b> button when you are ready."
},
{
type: "text",
name: "Name",
title: "Please enter your name",
isRequired: true
}
]
}, {
questions: [
{
type: "radiogroup",
name: "civilwar",
title: "When was the Civil War?",
choices: [
"1750-1800", "1800-1850", "1850-1900", "1900-1950", "after 1950"
],
correctAnswer: "1850-1900"
}
]
},
]
}
],
completedHtml: "<h4>You have answered correctly <b>{correctedAnswers}</b> questions from <b>{questionCount}</b>.</h4>"
};
Specify your
- browser: Chrome
- browser version: 79.0.3945.117
- surveyjs platform (angular or react or jquery or knockout or vue): jquery
- surveyjs version: 1.1.32
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
About Startup Security Utility on a Mac with the Apple T2 ...
Use Startup Security Utility to make sure that your Mac always starts up from your designated startup disk, and always from a legitimate, ......
Read more >HTML attribute: required - HTML: HyperText Markup Language
The Boolean required attribute, if present, indicates that the user must specify a value for the input before the owning form can be ......
Read more >Enable TPM 2.0 on your PC - Microsoft Support
If it is less than 2.0, your device does not meet the Windows 11 requirements. Option 2: Use the Microsoft Management Console. Press...
Read more >ARIA2: Identifying a required field with the aria-required property
The setRequired() function is called from the onload event of the window object.
Read more >[Fixed] DX11 feature level 10.0 is required to run the engine
This can fix some issues like the DX11 feature level 10.0 is required ... the Windows logo key and R at the same...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jakobjh I have added a new unit tests and check that it works on your JSON. We will include the fix into the next release, that we will release on next week.
Thank you, Andrew
very nice! 😃