0

salesforce render inline if tag solution needed.

rerender="{!IF(!AND({!isFilterBySelected},!NOT({!isSelectedAll})),'pageBlockID','testCompID')}"

getting syntax error...please help

  • 1
    Can you include the error message in the question please. – Dave Humm Sep 15 '16 at 11:03
  • Its not rerender what i expect. my idea is , there are two checkbox. when one xCheckbox true and Ycheckbox false then rerender the particular part . isFilterBySelected and isSelectedAll is checkbox boolean variable. – bharath Sep 15 '16 at 11:13
1

You only need the ! after the first curly brace not throughout the string. Also you do not put braces throughout the string. SF is smart enough to merge other variables within the braces.

{!IF(AND(isFilterBySelected,NOT(isSelectedAll)))}

This will be true if isFilterBySelected is true AND isSelectedAll is false

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.