Default Value of a field

Hi guys,

I know this is a simple problem but my mind has gone blank.

I have two fields on a form:

Field one - Section - A Dialog List field that contains three choices: Select, Yes, No

Field two - SectionAuto - A text field that contains the following formula:

@If(Section=“YES”; “X5124”; Section=“No”; “x4785”; “Blank”)

For some reason field two (SectionAuto) always contains ‘Blank’

Am i doing anything wrong?

Does the text field have a problem reading the DialogList field?

Thanks

Subject: Default Value of a field

hey go to field a field go to second tab enable last three propertiesit will work properly

and keep second field as computed

second tab compute aftervalidation enable it

if not in second field you keep condition as

@if(!section=“Yes”;“value”;!section=“No”;“values”;“”)

9731055656

Subject: RE: Default Value of a field

Hi Reddy,

That seems to work fine. I knew it was simple… Thanks.

I have a another problem now. I have another two fields on the form:

  1. model - editable text field

  2. modelAuto - computed field that reads the value of the text field

The default value of the modelAuto should also read sectionAuto and append this value to model i.e:

@If(Region= “1”;(SectionCodeAuto); Region= “2”;(model+Section);‘’)

For some reason the sectionAuto reads the value in the model field but always append ‘Blank’ at the end.

Simple?

Subject: RE: Default Value of a field

fixed it.