expandorg / worker-app

worker application
https://portal.expand.org/
Mozilla Public License 2.0
2 stars 0 forks source link

Rules screen won't show proper validation message #166

Closed kieranoreilly closed 5 years ago

kieranoreilly commented 5 years ago

I've tried putting the validation in multiple places:

{"modules": [{"name": "article", "type": "article", "title": "Rules", "content": "To begin this task you agree to the rules, terms and conditions, and privacy policy below."}, {"name": "rules", "type": "agreement", "label": "I agree", "validation": {"isRequired": "Please accept the agreement"}, "button": "Rules", "modules": {"name": "content", "type": "paragraph", "content": "<ul><li>You will be paid only if the task is verified by an approved Gems Verifier</li><li>You will not use any automated software or scripting to complete this task</li><li>You will follow task rules and instructions</li><li> <a href='https://gems.org/tos.pdf' target='_blank'> You agree to the Gems Terms of Service </a></li><li> <a href='https://gems.org/privacy.pdf' target='_blank'> You agree to the Gems Privacy Policy </a></li></ul>"}, "headline": "Rules"}, {"name": "submit", "type": "submit", "caption": "Next"}]}

Each time a popup comes up and says sorry try again

sslava commented 5 years ago

fixed. problem was in validation method for isRequired