Skip to main content
Skip table of contents

CurrentAccountRenderButton Button Class


The CurrentAccountRenderButton button class displays a button only when the logged in user meets the criteria defined on the data source for the button.


How Can I Use It?

The CurrentAccountRenderButton is useful in cases where you want to give additional options to constituents who have certain demographics or related historical records.
 Example: You can use this button class on a button that only displays for constituents who:
  • Are not members. The button displays for non-members, and they can click it to go to a page where they can learn more about member benefits.
  • Have demographics on whether they know other languages as a special skill. The button displays for those who have this special skill, and they can click it to go to a page where they can provide more information.
  • Purchased the ability to export the active membership list. The button displays for those who have a historical record of the purchase and they can click the button to download the file.

When using this button class on a button with a data source using a SOQL Query record, keep in mind the SOQL Query will return up to 50,000 records. To ensure you are not exceeding this limit, be sure to filter for the account ID of the logged in user as well as other criteria in the WHERE clause of the SOQL Query record. Example:

SQL
Id = {!CurrentAccountId} AND nu__Member__c = 'Yes'


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.