We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following validator does not work as expected:
RadioGroupQuestion(title="Do you agree?", choices=["Yes", "No"], required=True, validators = [ ExpressionValidator(expression="{consent} == 'Yes'") ])
A workaround is to explicitly set kind="expression", in the ExpressionValidator constructor.
kind="expression",
ExpressionValidator
This is due to an error in class ExpressionValidator(Validator) that contains kind: str = "regex" which should be kind: str = "expression"
class ExpressionValidator(Validator)
kind: str = "regex"
kind: str = "expression"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The following validator does not work as expected:
RadioGroupQuestion(title="Do you agree?", choices=["Yes", "No"], required=True, validators = [ ExpressionValidator(expression="{consent} == 'Yes'") ])
A workaround is to explicitly set
kind="expression",
in theExpressionValidator
constructor.This is due to an error in
class ExpressionValidator(Validator)
that containskind: str = "regex"
which should bekind: str = "expression"
The text was updated successfully, but these errors were encountered: