Hello everybody,
It makes now several weeks i go trough the different forums to find a way to make the check mark of a check box in LiveCycle with a personal color instead of the default black mark, that seems to be the only option available.
I saw somebody else with that question, but no answer.
So i found a work around, that make the check box really flexible.
Here it is:
REMEMBER that this will work only with forms saved as dynamic PDF.
Open a new form in Livecycle.
1) Open Library panel ( Shift+F12) and select Check Box and put it in the page with the dimension and position you like and select it.
Open the Object panel ( Shift+F7), select field section and under Caption make it blank. Select Binding Section and under name write in ' CheckBox '. for the rest leave all the section values as they are.
2) In Library select, in the standard section, the icon for making a text object. Put it in the page and size it to your needs and put it on the top of the CheckBox. Select it.
In the Object Panel, Draw section and under Presence 'Visible'.
Open the Font panel ( Shift+F4) and under font section, Font : select the Wingdings font and choose the symbol to use as the mark, under Size : the size you need, under Style: font color you like. If the result of the mark is to your feel, set the object to 'invisible'. Leave all other values as they are.
Open the Hierarchy panel (Shift+F11), right click on the static object and rename it to ' CheckMarkModel ' .
For information : changing the text object to an image object let's you use an image for the mark in the checkbox.
3) In Library, select in the standard section the icon for making a Button. Put it in the page and size it to the CheckBox dimension and put it on the top of the text object. Select it. In the Object panel, under Caption : make it blank, under Appearance : select custom in the drop down list an in the dialog box that comes up set the edges to none and the
background to none. Leave the rest as it is.
Open the Hierarchy panel (Shift+F11), right click on the Button object and rename it to ' ClickCheckBoxButton ' .
Now open the Script Editor (Shift+Ctrl+F5), on the left under Show : select in the list the ' Click ' event, under Language : select JavaScript, copy to the window the following script :
if (CheckMarkOnOff.rawValue == "0")
{
CheckMarkOnOff.rawValue = "1";
CheckMarkModel.presence = "visible";
}
else if (CheckMarkOnOff.rawValue == "1")
{
CheckMarkModel.presence = "invisible";
CheckMarkOnOff.rawValue = "0";
}
4)Now put in the page an other Check Box, put it on the top of the Button object and select it. In the Object panel, Field section, under Caption : make it blank, under Appearance : none, under Presence : invisible, let the rest as it is. In the Value section, under Type : Read Only, under Default : Off. In the Binding section, under Name : name it CheckMarkOnOff, leave the rest as it is.
5) So you have now four objects in the page 1. In the Hierarchy panel set each object by dragging them in
this order :
CheckBox
CheckMarkModel
ClickCheckBoxButton
CheckMarkOnOff
In the form select all the objects and group them. If you copy the group as many times you need you automatically will have an other Check Box, ready to work.
So here you are with an personal Check Box.
Don't forget to set the preview PDF to dynamic under Menu /File/Form Properties, the in the dialog box that shows up /Default tab and under the XDP Preview format : select in the list an Acrobat Dynamic form.
REMEMBER that this will work only with forms saved as dynamic PDF.
If somebody from Adobe could upload the sample file i made, to the forum, so that anybody can download it to his computer, would be appreciated, email me at : mamjodhmailvalid-adobeforums@yahoo.fr .
Regards Mike.