cancel
Showing results for 
Search instead for 
Did you mean: 

to compare the two Drop Down fields value in interactive forms

Former Member
0 Kudos

Hi All ,

My Requirement is to compare the two Drop Down fields value (one is old and other one is new )and mark the new field in red border , when it is changed .

now the scenario is .. it is not giving the red box even though it gets changed because after change both values are equal (both new and old dropdown values ) .

tried by storing the initial value in the form , but as it is online form , when another DropDown is selected , roundtrip happens and the initail value gets changed

Ex :

lets take dropdown values will be staff, assistant , and manager .

old value is assistant .

1) initail value of New field value is "satff" .

2) when we change it to "assistant" . now both fields value is same , (present scenario not giving the red box , as this method will compare the old and new field values ).

3) now wht i did , have added a variable to mark as "y" when it gets changed .

it will not work , when roundtrip happens . it is not working ...as it will new value will gets initaited ( if we change again after roundtrip happens )

help me in this ...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the change event for the drop-down list, try using the prevText propert.

PreviousValue.rawValue = xfa.event.prevText;

Regards,

Runal