how to make dropdown search  mandatory

please I want to make dropdown search mandatory it doesn't work and I can not find perfect solution :( please help me  

hello roro's 

Please check this URL 

https://akshayproject.outsystemscloud.com/Forumtest2/test?_ts=637610907171705629

Check Below OML as well if its works for you, it is customized Validation

Thanks and regards,

Akshay Deshpande

Dropdown.oml

thank you , it's work with me 

Hello roro s,

In main content put label and dropdown 

and set the mandatory filed of the dropdown as true 

and on the label of the dropdown pass input widget as dropdown name

note: give name to dropdown if the name field of dropdown property is blank so it will not work


Thanks and regards,

Akshay Deshpande.



i mean this one

Hi roro s,

May be the below post can help you.

https://www.outsystems.com/forums/discussion/60040/how-to-make-outsystem-ui-dropdown-search-a-mandatory-field/#Post230354 

I have attached the URL and oml.

Hope this helps!

Regards,

Ellakkiya.S

ReactivetestappEllak.oml

hello roro's 

Please check this URL 

https://akshayproject.outsystemscloud.com/Forumtest2/test?_ts=637610907171705629

Check Below OML as well if its works for you, it is customized Validation

Thanks and regards,

Akshay Deshpande

Dropdown.oml

thank you , it's work with me 

Hello roro s

Firstly what you can do is add the following classes to the input label, so the user can see that this field is marked as mandatory

"mandatory OSFillParent"


Then you must add an If with a local variable (e.g isValid) below this widget with the message that you want (default: Required field!) with the following class

"validation-message"

Then you must build the logic for validation.
When the user submits the data, you will check if the dropdown search has value and if It doesn't, you change the IsValid var to false, so the "Required field" message appears

Hope it helps ;)

Best Regards,

Tomás Dionísio

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.