Hi, I use button to change global variable from 0 to 1 and change textfield text from normal to bold.
if (boldValue.value == 0)
{
boldValue.value = "1";
Button9.fillColor = "222,229,255"
TextField1_1.font.weight = "bold"
}
else
{
boldValue.value = "0";
Button9.fillColor = "212,208,200"
TextField1_1.font.weight = "normal"
}
I save the document in adobe reader with user rights enabled
When I open the document I check the global variable at initialization:
if (boldValue.value == 0)
{
Button9.fillColor = "212,208,200"
TextField1_1.font.weight = "normal"
}
else
{
Button9.fillColor = "222,229,255"
TextField1_1.font.weight = "bold"
}
But it seems the global variable changes only on runtime and is static. How do I solve this?