Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Set value of dropdown at runtime

Avatar

Former Community Member

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

0 Replies