1 answer

Using a data field is the correct way to do this, by default a data field is not included in the submission data which also impacts pre-fill of data values. Go to the data tab for the data field and select "Include in Submission Data" and configure appropriately for your pre-fill data.