-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Build out validations in UI #2
Comments
Alex, this fork has been implemented in the branch https://github.com/HeHStudy/HeH/tree/1760-Add-NUBIC-surveyor. Notice the Gemfile in this branch contains:
So updates to the HeHStudy/surveyor fork are in its own git repo deep in the gems folder. In my case So for your setup I would first get 1760-Add-NUBIC-surveyor. Then do a bundle install which should add this forked surveyor. Then you will do updates in the fork repo or in 1760-Add-NUBIC-surveyor repo depending on which is more appropriate. |
FYI I just pushed a custom surveyor controller and layout to 1760-Add-NUBIC-surveyor. This is what I did to get the custom controller and layout
|
FYI. http://127.0.0.1:3000/surveys The "response set access code" is unique for each survey instance. |
@tparsnick I ended up solving this issue on the HeH repo side, it looks like the js files were not loading correctly. See: https://github.com/HeHStudy/HeH/tree/surveyor-display-validation-errors |
Great. So to make this work you needed 34_support-validations. Please merge this into our forked master. |
closed by #4 |
Range checks, data-type checks, mandatory fields, and other validations are represented in the models as validations but are not enforced in the UI. There should be validation messages to the user.
See NUBIC#34; https://github.com/NUBIC/surveyor/commits/34_support-validations.
Check this branch out and see how far it gets us.
This is a big issue and may be broken up into a few other issues as you see fit.
Mandatory Fields:
One major validation is mandatory fields. You can mark mandatory in DSL. There is model support for this. See surveys/kitchen_sink_survey.rb.
See NUBIC#469; https://github.com/alkalin3/surveyor/compare/validate-mandatory; https://github.com/alkalin3/surveyor/commits/validate-mandatory
The text was updated successfully, but these errors were encountered: