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

Error: Bad parameter while hiding/showing template;

Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

Hi,

I have a form  of 4 pages, all 4 have been turned into templates. I have dropdown on MainPage from where user can select Month, according to which corresponding template should show/hide.... ex.. if January is selected then Jan20 template should be visible rest hidden, if February is selected then February should be visible rest hidden.....  Below is the script i have used,, everything is working fine... except everytime is changed the selection it throws error "Bad parameter"

 

Attached is the link of the file: https://www.dropbox.com/s/5ht33asjvy5r0to/2020.pdf?dl=0

 

Here is the javascript

 

 

 

var a = this.getTemplate("Main_Page");
var b = this.getTemplate("Jan20");
var c = this.getTemplate("Feb20");
var d = this.getTemplate("Mar20");


var resp = this.getField("Monat").value;
switch (resp) {

case "January 2020":
a.hidden = true;
b.hidden = false;
c.hidden = true;
d.hidden = true;
break;

case "February 2020":
a.hidden = true;
b.hidden = true;
c.hidden = false;
d.hidden = true;
break;

case "March 2020":
a.hidden = true;
b.hidden = true;
c.hidden = true;
d.hidden = false;
break;

case "-Select-":
a.hidden = false;
b.hidden = true;
c.hidden = true;
d.hidden = true;
break;
}

 

 

adobe version.png

Thanks

TOPICS
Acrobat SDK and JavaScript

Views

479

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

correct answers 1 Correct answer

Engaged , Jul 16, 2020 Jul 16, 2020

Votes

Translate

Translate
Community Expert ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

In what app does you get the error message?

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

Adobe Acrobat Pro

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

What version?

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

Uploaded the screenshot in the original message

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

I don't get this message.

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

See the original message.. i have uploaded the screenshot of my adobe acrobat version

it is Adobe acrobat pro DC 20.006.20034.39303

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

..

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

Hi,

 

Can you repost the document, as I get a document not there link?

 

Regards

 

Malcolm

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

I don't get the message "Bad Paramter". Notihing happens when I select a entry in the dropdown list.

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
Engaged ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

yes, after you have cycled through all the options it stops working but when the original file was made then each time new selection was made it gave bad parameter error and once all the options were selected it stops working

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 ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

I have tried all options. I don*t see the bad parameter error. I see always the first page.

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
Engaged ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

don't use my file... as my file already cycled through option so it won't work .. make a new file  with 4 page make all 4 template.. and via dropdown  try to hide all pages except for 1 page.......

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 ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

You can create new file.

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
Engaged ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

LATEST

after creating new file same bad parameter error pops up and after cycling through all options.. it stops working

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