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

Table with invalid parameter

Explorer ,
Jun 25, 2023 Jun 25, 2023

Hello good. I have a form with a dropdown list, with several documents that when selected are displayed. So far so good, but when I go back to the option "SELECT AN OPTION" the box appears saying "invalid parameter".
I don't know why it comes out since everything is going well and fluid. Let's see if someone knows how to solve it or has the same thing happen to them.

Thank you all.
2.jpg

3.jpg1.jpg

TOPICS
PDF forms
931
Translate
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 ,
Jun 25, 2023 Jun 25, 2023

What script does you use at the dropdown?

Translate
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
Explorer ,
Jun 25, 2023 Jun 25, 2023

One moment, please

Translate
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
Explorer ,
Jun 25, 2023 Jun 25, 2023

It would really be something like this:

 

var a = this.getField("A").getArray();
for(var i in a)
{a[i].display = event.value == "DOCUMENTO A" ? display.visible : display.hidden;}

var b = this.getField("B").getArray();
for(var i in b)
{b[i].display = event.value == "DOCUMENTO B" ? display.visible : display.hidden;}


var t1 = this.getTemplate("plantilla1");
var t2 = this.getTemplate("plantilla2");


var p = Number(this.numPages)-1;
if(this.numPages != 1)
this.deletePages(1,p);

if (event.value == "DOCUMENTO A")
t1.spawn(numPages, false,false);

if (event.value == "DOCUMENTO B")
t2.spawn(numPages, false,false);

Translate
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
Explorer ,
Jun 27, 2023 Jun 27, 2023

var a = this.getField("A").getArray();
for(var i in a)
{a[i].display = event.value == "DOCUMENTO A" ? display.visible : display.hidden;}

var b = this.getField("B").getArray();
for(var i in b)
{b[i].display = event.value == "DOCUMENTO B" ? display.visible : display.hidden;}


var t1 = this.getTemplate("plantilla1");
var t2 = this.getTemplate("plantilla2");


var p = Number(this.numPages)-1;
if(this.numPages != 1)
this.deletePages(1,p);

if (event.value == "DOCUMENTO A")
t1.spawn(numPages, false,false);

if (event.value == "DOCUMENTO B")
t2.spawn(numPages, false,false);

Translate
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 ,
Jun 27, 2023 Jun 27, 2023

Can you share the file?

Translate
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
Explorer ,
Jun 30, 2023 Jun 30, 2023

Sent

Translate
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 03, 2023 Jul 03, 2023

I don't get the message "invalid parameter".

In the Javascript console I get this:


TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool
TypeError: f is null
1282:byteCodeTool

Translate
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
Explorer ,
Jul 03, 2023 Jul 03, 2023

And all those errors, how can I correct them?

Translate
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 03, 2023 Jul 03, 2023
LATEST

Check the calculations in the fields. There you use non existing fields.

Translate
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