Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Set value of dropdown at runtime


Not applicable


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





0 Replies