Required fields in red

Avatar

18-08-2008

Since the upgrade to Acrobat Reader version 9, we've found that the caption gets highlighted with a red border when this required field is empty and not filled in. In earlier versions, only the input box area was highlighted in red. Is this intentional?

Replies

Avatar

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
web_wolf
Level 2

19-12-2008

My hopes as well, Scott.



Thanks for your reply Tom. That certainly does get rid of the ugly red borders. Unfortunately, I still need the fill shading (light blue, or whichever system color they have set) of the fields.

Avatar

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
Thomas_McConnac
Level 4

19-12-2008

Ah, I got lucky. My boss wanted it all turned off.



I remember seeing something to do with changing the border colours to invisible, but can't remember exactly what.



Sorry I can't be of more use,



Tom

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

19-12-2008

Here is some code from a JavaScript object in one of my forms. textEdit should probably be changed to oneOfChild.



function VerifyField(field) {

if (field.rawValue == null) {

scoSpecific.IndicateError(field.ui.textEdit);

} else {

scoSpecific.ClearHighlight(field.ui.textEdit);

}

}

function IndicateError(field){

ChangeBorder(field, "255, 0, 0", ".175mm");

}



function IndicateRequired(field){

ChangeBorder(field, "0, 0, 255", ".175mm");

}



function ClearHighlight(field){

ChangeBorder(field, "0, 0, 0", ".175mm");

}



function ChangeBorder(field, color, thickness){

field.border.getElement("edge", 0).color.value = color;

field.border.getElement("edge", 1).color.value = color;

field.border.getElement("edge", 2).color.value = color;

field.border.getElement("edge", 3).color.value = color;



field.border.getElement("edge", 0).thickness = thickness;

field.border.getElement("edge", 1).thickness = thickness;

field.border.getElement("edge", 2).thickness = thickness;

field.border.getElement("edge", 3).thickness = thickness;



field.border.getElement("corner", 0).color.value = color;

field.border.getElement("corner", 1).color.value = color;

field.border.getElement("corner", 2).color.value = color;

field.border.getElement("corner", 3).color.value = color;



field.border.getElement("corner", 0).thickness = thickness;

field.border.getElement("corner", 1).thickness = thickness;

field.border.getElement("corner", 2).thickness = thickness;

field.border.getElement("corner", 3).thickness = thickness;

}

Avatar

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
web_wolf
Level 2

19-12-2008

I'm sorry for my ignorance, but how does this work in LiveCycle?

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

19-12-2008

In the Hierarchy tab, right click on variable. Click "Insert Script Object". Name it myScriptObject. In a text field exit event put:



myScriptObject.VerifyField(this)

Avatar

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
web_wolf
Level 2

19-12-2008

Nothing happens...

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

19-12-2008

[Ctrl]+J brings up the JavaScript window when viewing the form. What are the errors?

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

19-12-2008

Is your Script type set to JavaScript for the exit event and not FormCalc?

Avatar

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
web_wolf
Level 2

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
web_wolf
Level 2

19-12-2008

scoSpecific is not defined

3:1



Yes, I have the Script Type set to JavaScript.

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

19-12-2008

rename your script object to scoSpecific and the line in the exit event to scoSpecific...