This is from a hidden field in a form that is set to compute on creation. I believe that this formula is unchanged from what was working fine in R5. When the user chooses “No” when asked if the account is in the USA, the country list is presented and then when a country is selected the resulting document has a “1” as the value in the “Country” field rather than the country name. Any idea why?
@If(@IsDocBeingSaved & @IsNewDoc ; @Return(“”) ; @Success ) ;
FIELD Country :=
@If(
@Prompt([YesNo]; “US Based?”; “Is this profile address located in the United States?”) ;
@Return(“USA”) ;
@Prompt([OkCancelList]; “Country Selection”; “Please indicate the country where this company is located.”; “”;@Unique(@DbColumn(“”; DICT; “BunnLUCountry”; 2)))
);