Using Dismiss Scene v2 causes Wait For Scene v2 to fail (and thus can't validate scene data)
This applies to Tasker 35.apk and 35-1.apk. I've requested beta access but an update has not arrived yet.
I love v2 Scenes - many many thanks.
So a task (Show) displays a V2 scene with various elements. There is a button with a Dismiss Scene event. After the Show Scene v2 statement, there is a Wait For Scene v2. All works fine, the values of the scene's elements can be access after the dismiss button is pressed, via variables.
I want to validate the scene's input before dismissing it, so change the Dismiss Scene event to a Run Task event. This task (Validate) checks all the input values are compatible with each other. If they are not valid it sets the text of a warning element in the scene, and returns. However if all the checks are ok, the screen needs to be dismissed and the main (Show) task needs to continue. Using Dismiss Scene v2 in the Validate task cause the Wait For Scene v2 to fail with a No active scene error. Changing this Wait For Scene v2 to have Continue after fail solves part of the problem, but the variables from the scene are not available to the task when it fails like this. My work round has been for the Validate task to copy all the variables into Global variables.
The validation cannot be performed at the time the Scene's elements are modified, because there is a lot of interaction between them, and regEx checking of text input fields, etc - it would be too onerus.
Is there a better way of performing validation before dismissing a scene?