i wand value of empty selection to be null not -1

i wand value of empty selection to be null not -1 

Screenshot 2022-06-25 153221.png

Solution

Hello Abduerhman Salama,

After trying some JavaScript I have archived it .

Check this Link for live Demo

I am attaching my oml I hope this will help you get this resolved.

Code Snipet -



Thanks  & Regards 

Tousif Khan




Sample_Dropdown.oml

i need same thing for DropDownSearch 

Hi Abduerhman,

-1 is the value OutSystems assign by default to empty selection. You can create a condition in the code, when it's -1, assign a null value to the variable.

Regards

Solution

Hello Abduerhman Salama,

After trying some JavaScript I have archived it .

Check this Link for live Demo

I am attaching my oml I hope this will help you get this resolved.

Code Snipet -



Thanks  & Regards 

Tousif Khan




Sample_Dropdown.oml

i need same thing for DropDownSearch 

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