function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Actionsupport in VF page and apex controller don't work properly

Hi everyone, 

I'm developing a visualforce page with a couple of questions. Every question has a few possible answers, which I control with checkboxes(apex:inputCheckbox), and a text field(apex:inputText) next to the answer for additional information. I added an action support to the textfields, which controls the checkbox and changes the flag "isTextFIeldFulfilled". If a textfield is fulfilled then check the checkbox and set the flag to true, if not uncheck and set to false. I added also an outputText to debug the flag.The problem is that somehow the flag is not changed in the apex code, when the user writes something in the checkbox, but it's changed in the visualforce page.


I type something in the inputText, result: checkbox is checked and the outputText shows me that the flag is setted to true. When I call another function in the apex code later, the flag is false, although in the outputText it's shown as true.

Could someone tell me, what the problem is?


Phillip SouthernPhillip Southern
Hi, can you post the code so we can take a look?
Probably you have some required field in the page ?
What you can do is try enclosing the checkbox along with actionsupport in a actionregion