Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Related to Checkbox and Inputbox

Hi community,

I have one List box,in this List box i have two check boxes.and

I have two input boxes.

I want to able enter the value in to the inputbox only after checking the first check box in the list box list and same like for second box

will u please help me out this ,Thanks in advance .

10 Replies
jonasheisterkam
Partner - Creator III
Partner - Creator III

Can you please upload the example qvw, you can use a expression to disable the inputbox if a special value is not selected.

Not applicable
Author

Hi Ramesh,

You can try the following, hopefully it answers your request:

Under Settings > Document Properties > Variables, select the first variable related to the 1st inputbox.

In the Input Constraints, select Custom and type one of the following:

=GetSelectedCount(TypeHereTheFieldName)>0

or

=GetFieldSelections(TypeHereTheFieldName)='TypeTheValueThatShouldBeSelected'

Do the same for the 2nd variable.

In this way, the user cannot enter a new value in the inputbox unless he has selected a value in the listbox.

Or, a second option, you can set the conditional show of each of the inputboxes.

In the properties of the inputbox > Layout > Show, select Conditional and type one of the above expressions (GetSelectedCount or GetFieldSelections).

That way, the input box won't be visible unless the user selects a value from the listbox.

Not applicable
Author

We can Hide/Show the Input Box based on the List Box selection

InputBox --> Properties --> Layout --> Show

     check Conditional and enter getfieldselections(ListBoxField) = 'FirstValue' for first Input Box

Similarly, Please use  getfieldselections(ListBoxField) = 'SecondValue' for second Input Box

MayilVahanan

HI

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks Jean

The inputbox is not taking the value until the checkbox is check one.this is ok

But the inputbox is in enable state only

its should not be like this

The inputbox is in visible and is not enable state

could u help me out this soon..............jean

Thanks a lot

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Have a look at the application attached.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi jean,

how can we do same as for table box instead of input box.

can u help on this

Thanks in advance

Not applicable
Author

Hi Ramesh,

With the inputbox you can edit the values of variables.

If you want to be able to edit values in a table box, you'll have to define fields as INPUTFIELD in your script.

something like this:

INPUTFIELD Field1, Field2;

InputData:

Load 0 as Field1,

0 as Field2

Autogenerate 1;

But what about the options I've defined above, you can adjust the inputbox layout property "show conditional" depending on what the user has selected in the listbox.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can use the same logic and do it by yourself. Its easy and same logic will apply.

     Give a try.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!