It's impossible to tell from your post. There are a lot of different ways to set up what you want. Some require no scripting at all. Can you make a more detailed description of what you have set up?
Sorry about the vagueness, like I said, I'm new to this. I will do my best to describe the issue.
I have a global popover menu for the user to enter an event, date, and customer.
I have a global user field, which is a drop down list for the user to select a customer from the default menu,
Next to that, I have a global field with a drop down calendar for the user to select a date. When they select a date, any event records for the customer they selected, will show up in the calendar.
my issue is that no matter what date I select, all the records for the selected user come up. If the customer has an event during the first week of december, but no events on the second week of december, the calendar should not display any event records on the second week of december.
I have a basic script that takes the information entered into the popover, and enters it on a separate layout, and then displays it on the calendar.
Please let me know if you need more clarification
You need to describe the design of your "calendar".
From what you describe you appear to have a popover with several global fields located inside the popover panel, one for selecting the customer, one for selecting a date.
But how is that data used to change what appears in the calendar? How is that calendar designed?