278
Views
9
Comments
Solved
how to make search drop down as mandatory field

how to make search drop down as mandatory field while adding new data and also while updating,

for me the the error message is showing only for newly added record but i want is if anyone try to update already saved data and if they delete the data in the search drop down field and try to save it, then i need this error message below the search dropdown

2022-01-13 11-06-04
Neha Sheikh
Champion
Solution

Hello Shalini,

Please refer to the below OML. I have added the logic.


Thanks,

Neha

SearchDropdown.oml
2025-04-17 05-42-16
Ajit Kurane
Solution

Hi Shalini,

Please check below oml and demo for your reference.

You just need to validate it while create and update.

Demo link: DropdownTest

Hope it helps you.

Thanks,

Ajit Kurane.


DropdownSearchByAjitKurane.oml
2023-11-20 06-53-17
Neha Rathore
Solution

Hi Shalini,

Adding things on the above discussion, you need to add this validation on the start of the logic then only it will work otherwise in some condition it might fail.

Hope this helps 

Thanks


UserImage.jpg
Shalini D M

Yes it worked for me now, Thank you for the help.

2025-01-09 14-56-57
IQ78

hi,

try set its mandatory property to true:

UserImage.jpg
Shalini D M

There is no mandatory option for search dropdown.

2025-01-09 14-56-57
IQ78

So, u can check in the logic, if it is blank.

regards

2022-01-13 11-06-04
Neha Sheikh
Champion
Solution

Hello Shalini,

Please refer to the below OML. I have added the logic.


Thanks,

Neha

SearchDropdown.oml
2025-10-18 11-13-53
Ramesh subramanian

Hello Shalini, 

Answer by Anna Wojdyla in this post will help you.

Thanks,

Ramesh


2025-04-17 05-42-16
Ajit Kurane
Solution

Hi Shalini,

Please check below oml and demo for your reference.

You just need to validate it while create and update.

Demo link: DropdownTest

Hope it helps you.

Thanks,

Ajit Kurane.


DropdownSearchByAjitKurane.oml
2023-11-20 06-53-17
Neha Rathore
Solution

Hi Shalini,

Adding things on the above discussion, you need to add this validation on the start of the logic then only it will work otherwise in some condition it might fail.

Hope this helps 

Thanks


UserImage.jpg
Shalini D M

Yes it worked for me now, Thank you for the help.

2023-06-14 21-26-42
oscarldrt

Hello everyone, for this case, other solution for this is to use a logic component action.

For example: 

For the use of component Search Dropdown, valid the mandatory field with the action  "Dropdown not valid" calling a validation action within the save action..

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