Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Set value of dropdown at runtime

$
0
0

Hi,

 

I am using formcalc to set the default value of a dropdown during runtime. I tried both rawValue and selectedIndex. However, in both cases the first value of the dropdown list gets overwritten with the default value. How do i set the default value without the overwrite?

 

for i=0 upto ( GV_CARR_COUNT - 1 ) do

data.SubformPage.Header.CARRIER.addItem ($record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1, $record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1)

if ( $record.IM_HEADER_DATA.CARRIER.DATA[i].PCT_FLG == "X" ) then

data.SubformPage.Header.CARRIER.rawValue = $record.IM_HEADER_DATA.CARRIER.DATA[i].NAME1

endif

endfor

 

Regards

Nandini


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>