show / hide menu

ResetHiddenControls

Purpose

The ResetHiddenControls function resets the values of hidden controls in the form. It can be used to reset all hidden controls or only the specified hidden control(s). 

Syntax

ResetHiddenControls()

ResetHiddenControls(ControlName)

ResetHiddenControls(ControlName1, ControlName2, …, ControlNameN)


Arguments

1. ControlName (Optional) – The hidden control whose value needs to be reset.

2. ControlName1, ControlName2, …, ControlNameN (Optional) – A comma-separated list of hidden controls whose values need to be reset.

Examples
1. Resets the values of all hidden controls in the form.

ResetHiddenControls() 

2. Reset a specific hidden control 

ResetHiddenControls(HiddenControl1)

3. Reset multiple hidden controls 

ResetHiddenControls(HiddenControl1, HiddenControl2)

Note: Normally, changing the value of a hidden control triggers any rules associated with its Value Changed event. However, when the ResetHiddenControls function is used to reset the value of a hidden control, it performs a silent reset and does not trigger the associated Value Changed rules.