Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

is it possible to create more than 1 inputfield?

Hi all,

I am trying to put 2 different input field in my report but when I refresh I get  "Script line error"! Anybody can help please?

Thank you in advance

4 Replies
vinieme12
Esteemed Contributor II

Re: is it possible to create more than 1 inputfield?

please post your script

Not applicable

Re: is it possible to create more than 1 inputfield?

Here you are, thx:

Inputfield test1;

Test1:
Load RecNo() as InputKey,
'Fill In Capital "Y" or "N"' as Test1
autogenerate  10;

Inputfield test2;
test2:
Load RecNo() as InputKey,
'To do' as test2
autogenerate  12;

Not applicable

Re: is it possible to create more than 1 inputfield?

Capture.JPGInstead, i think you can create two input box, and hide one caption and put them into a container, this is my dummy method.

Not applicable

Re: is it possible to create more than 1 inputfield?

Sorry I found the error.

I was using peek() function; for the first table it works but the second not. I replaced the peek function by a  variable. and all seems to work fine:

let vNr = peek('NrOfLines');

Inputfield test1;
Test1:
Load RecNo() as InputKey,
'Fill In Capital "Y" or "N"' as Test1
autogenerate  $(vNr); //peek(NrOfLines);

Inputfield test2;
test2:
Load RecNo() as InputKey,
'To do' as test2
autogenerate  $(vNr); //peek(NrOfLines);

thank you for your contribution