Mandatory field not working for Autocomplete field

tushaar_srivastava

26-06-2019

I have added isrequired{string} : true property and

sling:resourceTyoe : granite/ui/components/foundation/form/autocomplete in dam asset dialog.

The error pop up and the red border that should appear for mandatory fields is not appearing .

However, when required{Boolean}:true property is added the validation ”Please fill out this field” is appearing but I am not able to save the form as the error dialog”

One or more required fields missing” appears.

1779725_pastedImage_0.png

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

26-06-2019

Hi,

There is no OOTB property for coral resource type called isrequired{string}, and please use coral3 insteadof of coral2

Autocomplete — Granite UI 1.0 documentation

What is your use case here? If you want user to fill fields then use required(Boolean) property.

Answers (0)