Make a Visit an integer

LabKey Support Forum
Make a Visit an integer murff  2022-09-06 16:18
Status: Active
 

When setting up a new study if I pick visit, the users have the ability to enter decimal values for the visit. Ex (1.1000,1.2000, etc.)
How do I change that so the visit can only be an integer (1,2,3, etc).

 
 
mohara responded:  2022-09-07 10:31

Hi Murff:

I'm going to move this question to your premium support portal so we can better address it in the specific context of how you are setting up other parts of data entry for your study.

Generally, a study 'Visit' is defined as a range of decimal SequenceNum values, and can have an optional text label as well. In the default UI, users can type an integer, but it's treated as a decimal value when inserting a row in the UI for the SequenceNum and aligning the data in the matching 'Visit'. Learn more about visits here.

If customizing the entry form, you could constrain user entry to integer values. Or, if using bulk data entry from a file, you can make use of visit maps and text label aliases, letting users identify the visit by a name familar to them, all aligned with other data for that 'visit' by any other name. Learn more about visit names and aliases here.

Thanks,

--Molly