cancel
Showing results for 
Search instead for 
Did you mean: 

Initial values for Decimal/Numeric fields

jlsim
Explorer
0 Kudos

Hi Gurus,

0 is the initial value for decimal or numeric fields when i generate an interactive form. Mandatory check will always be successfully since there is a value (zero) inside, so I would like to make it empty. I know it can be done using the script below, but can someone show me if it can be done using just patterns? or is there a better way to do this?

At Form ready or the numeric field::

if (this.rawValue == 0){

this.rawValue = null;

}

thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jee,

Why you wish to set a initial value 0 in numeric field? I think in Validation Pattern, there is a checkbox for for allow input value empty. I use Adobe LiveCycle Designer to do it.

jlsim
Explorer
0 Kudos

Hi Xiaodong,

Thanks for the suggestion but i have tried the allow empty check box, but that doesn't stop the initial 0 from getting populated during the form generation.

Former Member
0 Kudos

I think you can't. But why are you willing to do that?

jlsim
Explorer
0 Kudos

Hi Aldo,

I am using a submit thru email button, and i am setting that field to be mandatory, so if that field is populated with 0 as default, the mandatory check that get triggered when i clicked on the submit button will always pass it.

Any idea is welcome.