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

TextField value is not printing.

Avatar

Avatar
Boost 1
Level 1
thamizh12
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
thamizh12
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
thamizh12
Level 1

05-06-2015

Hi,

I am working in adobe livecycle designer. Have problem in assigning value to the textfield.

My script is like:

if(abc.length>25){x.rawValue="Length exceeds the limit");}

Everything goes fine but the value of textfield is not printing. So I tested by adding alert inside if condition. Like below:

if(abc.length>25){app.alert(x.rawValue); x.rawValue="Length exceeds the limit"); app.alert(x.rawValue);}

So what happening is, first alert is coming as 'null' and the second alert coming with the value "Length exceeds the limit". But the text field is not showing any value, it is still blank.

I made the field presence is visible as well.

Its little urgent. Any help is appreciate!

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 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,684 posts

Correct Reply

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

09-06-2015

If the name of your field is really "x" rename it!

x is a reserved name of a property and sholud never be used as name or variable.

Same goes for y, h and w.

Avatar

Avatar
Boost 3
Level 1
jsanborn58
Level 1

Likes

3 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 3
Level 1
jsanborn58
Level 1

Likes

3 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile
jsanborn58
Level 1

05-06-2015


Check the log tab in the Report window at the bottom of Designer. It will tell you if you have any syntax errors in your script.

Avatar

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile
alcdtrainer1
Level 2

08-06-2015

Hi Thamizh12,

As suggested by jsanborn58, pls check the log tab. Also, please check if the field is Textfield or NumericField. A numeric field will accept only numbers and not alphabets.

If the issue is still perisists, please mail the form @ alcdtrainer@gmail.com

Thanks.