cancel
Showing results for 
Search instead for 
Did you mean: 

Not clearing dropdown value in interactive HCM P & F forms.

Former Member
0 Kudos

Hi Gurus,

I had an issue with dropdown list value in one of the HCM P & F interactive form. The scenario is like this. There is one input field (named cost center ID) and one dropdown list (named Org unit). In input field first time I entered cost centre ID and I clicked update push button then in Org unit dropdown list, list of org units related to selected cost centre ID got populated. Among those I selected one Org unit in dropdown list. Then immediately I felt this is not the right cost centre and I selected another cost centre and I provided this cost centre in input field and I clicked pushbutton. Now in Org unit dropdown list field, new list of org units populated along with old value selected previously.

For ex: For cost centre ID 1005678 (assume org units are A, B, C, D) and for cost centre ID 1987234 (assume org units are W, V, U, X). First I selected cost ctr ID 1005678, I got a list of org units A,B,C,D. Among these I selected org unit 'B'. Now I felt this is not right cost ctr and I selected cost ctr ID 1987234 and clicked update button. Now I got a list of orgunits W,V,U,X,B. Along with the new list, previous selected org unit 'B' also appearing. My requirement is to clear this value 'B' from the drop down list before populating the new list. I request any suggestion for this issue.

Regards,

Nayani.

Accepted Solutions (0)

Answers (2)

Answers (2)

ChrisSolomon
Active Contributor
0 Kudos

Nice answer Derrick.

Former Member
0 Kudos

The 'value' of your dropdown field is still B when you make the call to the backend. You need to reset the dropdown before going to the backend. You can do this by clearing the rawvalue of the field (dropdown.rawValue = '') and setting the selected index of the dropdown to '-1'.

Derrick Banks

Banks & Company, LLC