powered by
Function that identifies the values for a progress bar in REDCap.
redcapProgressBar(numSurveys, beginning = 2, end = 99)
sequence of numbers for the progress bar in REDCap.
the number of surveys to establish progress.
the first value to use in the sequence.
the last value to use in the sequence.
A progress bar in REDCap can be created using the following code:
Progress: <div style="width:100%;border:0;margin:0;padding:0;background-color: #A9BAD1;text-align:center;"><div style="width:2%;border: 0;margin:0; padding:0;background-color:#8491A2"><span style="color:#8491A2">. </span></div></div>
where width:2% specifies the progress (out of 100%).
width:2%
redcapProgressBar(numSurveys = 6) redcapProgressBar(6) redcapProgressBar(4) redcapProgressBar(numSurveys = 7, beginning = 1, end = 99)
Run the code above in your browser using DataLab