How to clear a repeatable field depending on a non-repeatable field?

Any ideas how to clear a repeatable field depending on a master field, which is not part of a repeatable group? The only options a12 is giving me in that case are R/O and Hidden (version 28.1.1).

Hi Bernhard,

it is possible to achieve it by using a computation combined with a dummy field (so it might be considered a workaround).

  1. Data Modeler: Create a dummy field in your repeat. The dummy field should be of type boolean or confirm. It will later be used as master field for the dependency.
    You might also concider marking the dummy field as transient so that its value will not be submitted and stored on your server.
  2. Data Modeler: Create a computation for the dummy field based on the value of your original master field (the one which is outside of your repeat).
  3. UI Designer: Set up the dependent field option and select the dummy field as master field. Now the option “Clear” will be available.

I attached a sample model set for demonstration purposes.
DocumentModel.xml (1.8 KB) FormModel.xml (2.1 KB)
In my example, the repeatable fields “Integer” will be cleared if “Master Field” is selected

Please note that this will clear all field entries of the column.

Hi Henner,

yes, this works. Thanks a lot for your answer and the example you provided!