The CaptureDataElement command was originally called DefineDataElement, which can still be used, for backward compatibility.

This command is used when, for whatever reason, a data element does not pass the XpressDox relevance rules and hence does not appear on an interview, but, nevertheless, the template author would like the data element on the interview.

Another reason to use it would be to change the sequence in which the data element is placed on the interview, relative to other data elements on the interview. The sequence in which data elements appear on the interview is the sequence in which they were first encountered in the template. So, to move a data element higher up in the interview, all that is necessary is to place a CaptureDataElement command referring to that data element, in the place in the interview before the other data elements that should appear after it in the interview.

With effect from Version 5 of XpressDox, more than one data element can be referred to in the same command: