Greetings - a big thank you in advance for any assistance. I have often found answers to my problems on this forum, but have been unable to find an answer to the following.
The short of it - is it possible to make a pair of radio buttons control the visibility of multiple text objects with the same name(I have had success in manipulating only a single text object with one pair of buttons)?
The long of it - I am trying to make a form bilingual based on the value of a radio button group to control the visibility of the text object in the selected language. When the user selects the language they wish to see, all the text objects in the form switch to that language. I am working with a dynamic PDF.
I have succeeded to a very limited extent in manipulating one text object by overlaying text objects in both languages, setting one object to "invisible" as default, and controlling that text objects visibility with the following JavaScript in the click event of the radio button group:
----- form1.#subform[0].ENG_JPN::click: - (JavaScript, client) -------------------------------------
if (ENG_JPN.rawValue == 1)///1 equals the value of on
{English.presence = "visible";}
else
{English.presence = "invisible";}
if (ENG_JPN.rawValue == 2)///2 equals the value of on
{Japanese.presence = "visible";}
else
{Japanese.presence = "invisible";}
endif
The problem is I need to manipulate the visibility of all text objects with the same name on the form with a single radio button group. I have tried writing the code as one does for the sum of a repeating field, ie. English[*].presence etc. however I get a C++ error in preview.
Any ideas are greatly appreciated. I am truly stumped - thank you for your time.