Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 .
Can you please upload the example qvw, you can use a expression to disable the inputbox if a special value is not selected.
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.
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
HI
PFA
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
Hi,
Have a look at the application attached.
Regards,
Kaushik Solanki
Hi jean,
how can we do same as for table box instead of input box.
can u help on this
Thanks in advance
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.
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