Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Mandatory field not working for Autocomplete field

Avatar

Level 4

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.

View solution in original post

0 Replies

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.