Setting up a condensed field type- Strength and conditioning form example
Condensed fields are used to condense a lot of fields into a pop up box so that when they are entered in group mode or in the Training Blocks module they do not take up a lot of space. They are usually enabled on strength and conditioning forms, but the form fields need to be set up correctly in order for it to work.
The image here shows you how the condensed fields work and function on the Training Blocks module for a strength and conditioning form
The fields Sets, Reps, 1RM, %1RM, Weight, Load and Comments pop out and the user can enter in multiple amounts of sets and reps for that exercise. When you click out of the condensed pop up box, the information is then shown in a summary (condensed) format e.g. 3 x 4 (90%), 3 x 6 (85%). It is a very handy way of entering in multiple sets of data for one exercise.
Just entering the data for a single athlete at a time will not change the appearance of the form, it is only changed when you enter the form in the training blocks module
To enable the form to compress into a pop out box and then be summarised you need to set up the field and the form properties correctly. Set your Compressed Summary Field
The Advanced Properties of the Form need to specify which field will be shown as the summary of the condensed information. For this example it is the field name Summary. This field has been designed to concatenate all of the previous columns of data on the strength and conditioning form and it has to be selected as the Compressed Summary Field.
Now set the Summary Field in the event form so that it summarises the correct information
The summary field is set to show the sets, reps, %1RM , Weight etc in a summary format. The equation used here is as follows:
if( isempty(%1RM), concatenate(Sets,'x',Reps),
concatenate(Sets,'x',Reps, ' (', %1RM,'%)')
)), concatenate(Sets,'x',Reps, ' ',Weight,' (', %1RM,'%)') )
Now set EACH field that you want to condense to Compressed Data Entry
All fields that are going to appear in the pop up need to be set as Compress Data Entry equal to True. The example here shows that Weight column is being set to be compressed. This also needs to be performed for the Sets, Reps, 1RM, %1RM, Weight and Load fields and can also be set for the Comments as well.