Form.clear() does not clear ListView component

Hi everyone!

The form component’s .clear() option is really a proxy of the .setValue() or .clear() options that other child components have. If they don’t support the function themselves individually, it won’t be cleared.

The listview container itself doesn’t load inputs, and it’s a known request to support JS methods on child components of a listview (From when I was a customer! Add setValue to listview items) but it’s actually a fairly complicated addition to make.

Since those child components load other data sets and settings, you can clear the fields by updating the values that they are referencing. For example, if there was a textinput inside of the listview and you wanted the value to always be blank after the form is submitted you could have it’s default value settign be dependent on the query that is run when the form submits. Something simple like {{ queryName.timestamp?"":"" }} would reset that field to blank whenever the query ran

1 Like