add a hidden input to record the id of the captured data.