You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you requesting a feature, reporting a bug or asking a question?
Bug
What is the current behavior?
We initialize a new SurveyModel with a JSON of a multi-page questionnaire that contains a trigger to "complete" it, before the end of the pages. Then we mergeData to that model where the the condition of trigger is met.
In that case the button label remains "Next" where it should be "Finish" . In case the user clicks the "Next" button (where it should say "Finish") the questionnaire is finished
What is the expected behavior?
The button should say Finish instead of Next
How would you reproduce the current behavior (if this is a bug)?
Load the codesanbox url provided below
Provide the test code and the tested page URL (if applicable)
@kasar-NTT To implement this, we would have to run "complete" triggers and check if they are going to be executed or not on every value change. Since some developers may use custom function in "complete" trigger expressions, including async function with requests on servers, this functionality should be optional.
@kasar-NTT
You can get the list of triggers as: survey.triggers. Every trigger has getType() function, as all SurveyJS objects.
You can use survey.runExpression(expression) function. It should return true for your complete trigger.
You can use survey.onValueChanged event to handle any value change for all questions.
Please refer to our survey API for more information.
Are you requesting a feature, reporting a bug or asking a question?
Bug
What is the current behavior?
We initialize a new
SurveyModel
with a JSON of a multi-page questionnaire that contains a trigger to "complete" it, before the end of the pages. Then wemergeData
to that model where the the condition of trigger is met.In that case the button label remains "Next" where it should be "Finish" . In case the user clicks the "Next" button (where it should say "Finish") the questionnaire is finished
What is the expected behavior?
The button should say Finish instead of Next
How would you reproduce the current behavior (if this is a bug)?
Load the codesanbox url provided below
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://codesandbox.io/p/sandbox/surveyjs-angular-forked-d4l2j8?file=%2Fsrc%2Fapp%2Fcomponents%2Fsurvey.component.ts%3A15%2C3-25%2C4
Test code
Specify your
Screenshots
Initial Stage:
After clicking to No and then Yes again
The text was updated successfully, but these errors were encountered: