• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

I want a radio button to toggle language.

Participant ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

In Acrobat, I want to have 1 form that will toggle between 2 languages.

If I choose A, the form is English, if I choose B, the form is in French.

TOPICS
PDF forms

Views

573

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

LATEST

Hi.

If relevant, you can use the same form fields for both languages, and then manage layouts/layers/languages only.

View solution in original post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

You need to be more specific. What exactly do you want to "toogle"? The actual static contents of the files? Something related to the form fields? Something else?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Thank you.

What I want is to have an English form with a layer. On the layer will be the same form, but in french.

A set of radio buttons will hide/show the language depending on what you selected.

So you have one file. When you open it, it is English, when you select the french button, it hides English and presents French.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

OK. Set the Radio Button Choice values of your radio-buttons to the same name as your layers and then use this script as the Mouse Up event for both of them:

var ocgs = this.getOCGs();

for (var i in ocgs) {

    ocgs.state = (ocgs.name==event.target.value);

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

LATEST

Hi.

If relevant, you can use the same form fields for both languages, and then manage layouts/layers/languages only.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines