The code block below illustrates how one might use # and // as comments in your logic and calculations.
# Text can be put here to explain what the logic/calculation does and why.
if ([field1] = '1' and [field2] > 7,
// This comment can explain what the next line does.
[score] * [factor],
// Return '0' if the condition is False.
0
)
Working …
0% means
50% means
100% means
This value you provided is not a number. Please try again.
This value you provided is not an integer. Please try again.
The value entered is not a valid Vanderbilt Medical Record Number (i.e. 4- to 9-digit number, excluding leading zeros). Please try again.
The value you provided must be within the suggested range
The value you provided is outside the suggested range
This value is admissible, but you may wish to double check it.
The value entered must be a time value in the following format HH:MM within the range 00:00-23:59 (e.g., 04:32 or 23:19).
This field must be a 5 or 9 digit U.S. ZIP Code (like 94043). Please re-enter it now.
This field must be a 10 digit U.S. phone number (like 415 555 1212). Please re-enter it now.
This field must be a valid email address (like joe@user.com). Please re-enter it now.
The value you provided could not be validated because it does not follow the expected format. Please try again.
Required format:
Formatting REDCap Forms with HTML
AAA
To apply formatting to text or other parts of your forms in REDCap you will need to use some HTML.
This survey demonstrates how to do this for your forms by using HTML tags. Use this survey form and samples of code below to explore different ways of formatting.
When you are ready - copy the code and paste into your own REDCap fields!
Some basic information about HTML:
HTML works by enclosing the text you want to format with HTML "tags".
The tags can be included in your Section, Descriptive, Question and/or Answer texts.
A tag is a type of instruction or command that will change the appearance of text as well as perform other functions on your REDCap forms because they are web pages.
The tags are enclosed with greater and less than < brackets > and may be written in capital and lower case letters.
You need to both open a tag and close it.
You close it with the same tag but add a /
Example < center > centering text < /center >. *Do not leave spaces in tags when using the actual tag - see below for examples.
You have selected an option that triggers this survey to end right now.
To save your responses and end the survey, click the 'End Survey' button below. If you have selected the wrong option by accident and/or wish to return to the survey, click the 'Return and Edit Response' button.