question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make matrix questions mandatory (ie via isRequired)

See original GitHub issue

Are you requesting a feature, reporting a bug or ask a question?

Question

What is the current behavior?

When I mark a matrix as isRequired, I can go through without filling out all the options

What is the expected behavior?

Hopefully, I can’t go to the next page until all questions are answered correctly

How would you reproduce the current behavior (if this is a bug)?

Make a matrix as isRequired and then click to the next page before they’re all filled

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser:
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue):
  • surveyjs version:

Is there a way to do this? Couldn’t necessarily find anything in the documentation, I want the matrix questions to have to be answered before the user can go to the next page, the screenshot should be illustrative of what I’m trying to accomplish. screen shot 2017-07-22 at 7 54 13 pm

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewtelnovcommented, Aug 16, 2017

@mrmayfield Sorry, that I did not come back early. I have forget to write a message here. There is already an option matrix.isAllRowRequired boolean, false by default.

Thank you, Andrew

0reactions
andrewtelnovcommented, Nov 21, 2017

@Lynn42 It is an another error type. You may change it as the following: Survey.surveyStrings.requiredInAllRowsError = “Your error text”; The default text is “Please answer questions in all rows.”, if you are using the default, “en”, locale.

Thank you, Andrew

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a Question to a Matrix Based Assessment - Protiviti
When creating a matrix-based question, you will choose the text and information for the scoped objects, and then choose the object fields that...
Read more >
Matrix - Survalyzer Help Center
A participant is required to select an answer per row, once the box next to Force response (mandatory question) has been ticked. If...
Read more >
Matrix questions - Novi Survey
Constrain the number of answers for a matrix question or make the matrix question 'required':. For each segment in a matrix, the number...
Read more >
Mongoose: validation error path is required - Stack Overflow
log("Can't create new user: %s", err); } else { /* We succesfully saved the new user, so let's send back the user id....
Read more >
Matrix of Services Handbook - Florida Department of Education
For scholarship students who do not have a matrix in accordance with s. 1011.62, F.S., the school district is required to “complete a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found