82
Views
5
Comments
Dropdown options selection always saves first value
Application Type
Reactive
Service Studio Version
11.54.19 (Build 62633)

I have a dropdown for Department selection. I have added the options as Record and the same is displaying in the dropdown. But whatever option i select, it is saving the first option to the Database.




Screenshot 2023-08-07 104450.jpg
Screenshot 2023-08-07 104529.jpg
Screenshot 2023-08-07 104422.jpg
2023-01-27 13-47-30
Ahmad Aqil

Hi Mohamed,

It always saved the first option because of you are passing GetNCDeptById.List.Current.NCDept - this current value from list will take the first value from it.

So you must use your variable  that you set in the drop down (NCDeptIdentifier) to save the selection.

I hope this helps you

Thank you,

Regards

Aqil


UserImage.jpg
Puja Rani

Hi Mohamed,

Also adding to Aqil answers, there is no need to pass as an input parameter to Dropdown(can be removed) on change action. You can directly use the local variable 'NCDeptIdentifier' to save the dropdown value.

2025-08-09 07-22-56
Bharathi Selvaraj

Hi @Mohamed Shoaib
   Just remove the onchange action and value which you are selecting in Dropdown, it will store in "NCDeptidenfier" variable.If its not work let me know.


Regards

Bharathi

2023-10-27 12-06-14
Asiyah Munawwar

Hello Mohamed Shoaib,

Remove NCDept from on change event handler as it will always store the current value i.e. the first value of the list .Your value will be store in  NCDeptidenfier .

Regards


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