Open iaminvictus1993 opened 2 years ago
@iaminvictus1993 Yes, it doesn't support async and it can't from UI point of view. You can use survey.onServerValidateQuestions event to validate question input on server.
Thank you, Andrew
@andrewte thanks for your quick reply, I check this demo in my scenario. it may not suit me. we want to give a confirm to some important questions. value change is decided by the user not by any code. it seem like a delete action, we need popup a confirm. so any suggestion to hack this?
@iaminvictus1993 Your scenario is not clear to me right now. Could you please explain it better.
Thank you, Andrew
thanks @andrewtelnov, all I want is before changing a question value, I want to show a confirm modal to cancel or accept the value change. this work fine demo can meet my scenario, except it's no ui confirm。 so I want to custom the window.confrim modal, I try this not work demo.
@iaminvictus1993 We can't lock UI onValueChanging. Here is your updated example.
Thank you, Andrew
@andrewtelnov thanks, I got your thoughts. but I still have some concerns about this.
Are you requesting a feature, reporting a bug or asking a question?
question
What is the current behavior?
onValueChanging cant support async code
What is the expected behavior?
before change the question value, I want to popup a modal to confirm whether change the value
How would you reproduce the current behavior (if this is a bug)?
any suggestion to me?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your