We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

2

There is an issue when you try to reRender a conditionally rendered outputPanel (because it was never in the DOM to begin with). Add the conditional rendering on the individual fields or a sub tag from the outputPanel as follows (I tested and works just fine) <apex:form> <apex:inputField value="{! Account.Checkbox1__c }"> <apex:...


0

I have a solution, and I'm posting this for anyone else who needs this answer in the future! Instead of <apex:actionSupport> on the <apex:selectCheckboxes>, use <apex:actionFunction> to invoke AJAX using JavaScript. This is the key to why a <apex:commandButton> worked, but a click event on the checkbox list itself did not. Here's ...


0

Since the selected options are being stored in selectedReasons, you can just use selectedReasons.contains( 'Other' ) as the conditions like such: public PageReference toggleDetails() { if ( selectedReasons != null && selectedReasons.contains( 'Other' ) ) { showDetails = true; } else { showDetails = false; } return ...


Top 50 recent answers are included