Expand my Community achievements bar.

SOLVED

Mandatory field not working for Autocomplete field

Avatar

Level 7

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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.



Arun Patidar