Simple way to clear a selected option in a dropdown onprem

Hi,
I have a form with a simple dropdown control in the onprem version (1.9.0) of Plumsail forms..
Now my user complains that he can not clear this control when he selected something in the first place...

So, what is the easiest way in the GUI to let the user clear his selection?

kind regards,
bartplessers

Hello @bartplessers,

There is a clear icon appears when you point the control:
image

In the onprem version there isn't any "clear" icon on a Plumsail dropdown field...
This is my interface
(1) SharePoint choice field
(2) SharePoint lookup field
(3) Plumsail (unbound) dropdown field

PS:
in the cloud version, there is a clear icon...

@bartplessers,

Indeed, the Common Drop Down in the on-premises version doesn't have a clear button.

As a workaround, you can add a button next to the field with the following code to clear the selection:

fd.field('FieldName').clear()

Hi @Margo
SharePoint 2019 On-Premise

I am trying to clear multiple lookup and date fields and a lookup control on a form when the user selects "No" from a dropdown field. Unfortunately, I am receiving an error with the following syntax:

fd.field('City').clear();
fd.control('Place').clear();

fd.field('Date').clear();

I don't believe clear() will work on a Date field? Is that correct?

The error is "TypeError: cannot read properties of null(reading 'LookupValue')"

Any assistance is appreciated.
Thanks, Rhonda

Hello @rhonda,

clear() function works for all fields, including Date fields.

TypeError: cannot read properties of null(reading 'LookupValue')

This error means the problem is somewhere else in the code. Check how you're using LookupValue.