---
title: "Limit the number of user votes per month"
canonical: "https://support.appfire.com/space/PSJ/15482862/Limit%20the%20number%20of%20user%20votes%20per%20month"
format: markdown
---
> Macro (aura-html)



Here’s a video on how to limit the number of user votes per month.

 

```
string [] votesMonth;
string userProps;
int month = month(currentDate()) - 1;

userProps = getUserProperty(currentUser(), "votesMonth");

if(isNotNull(userProps)) {
    votesMonth = userProps;
    if(isNotNull(votesMonth[month])) {
        int count = votesMonth[month];      
        if(count >= 3) {
            lfHide("votes");
        }
    }
}
```