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
BedrockMission!

Learn More

View all

Sign in to view all badges

Adobe Acrobat Form : Adding 5 fields and allow "-" in any field

Avatar

Avatar
Validate 1
Level 1
rakeshk21205956
Level 1

Likes

0 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
rakeshk21205956
Level 1

Likes

0 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
rakeshk21205956
Level 1

02-10-2019

I want to add Five Fields (numeric) and also allow user to enter "-" (dash sign) if no value is present instead of 0.

but when i put "-" in any field it returns NaN.

Following is my script :

var n1 = Number(this.getField("Text1").valueAsString);

var n2 = Number(this.getField("Text2").valueAsString);

var n3 = Number(this.getField("Text3").valueAsString);

var n4 = Number(this.getField("Text4").valueAsString);

var n5 = Number(this.getField("Text5").valueAsString);

event.value = n1+n2+n3+n4+n5;

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,682 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,682 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

02-10-2019

This forum is about forms created with LiveCycle Designer not Acrobat.

You should ask your questions here: Acrobat on Adobe Support Community