magpie-ea / magpie-modules

the reusable front-end bits in the _magpie modules
MIT License
7 stars 1 forks source link

Displaying error message? #8

Open x-ji opened 5 years ago

x-ji commented 5 years ago

Some trials may expect the responses to conform to a certain format before accepting the response and proceeding to the next trial, e.g. in the woq experiment. Not sure how frequent such situations happen. It might be helpful to include some default components for error messages on the page, e.g.:

In views.js

                <p class="error-info error-no-input">Please fill in at least one textarea.</p>

In style.css

.error-info {
    display: none;
    color: orangered;
}