-
Notifications
You must be signed in to change notification settings - Fork 747
feat: Implement filter for Facebook lead forms #1426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Added a filter to display forms linked to selected Facebook pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a filter mechanism for Facebook lead forms to ensure only forms associated with the selected Facebook page are displayed.
Key Changes:
- Added a
facebook_pageevent handler that filters thefacebook_lead_formfield based on the selected page - Introduced query filtering logic to improve user experience by limiting form options to relevant entries
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
@sambhusbabu Add screenshots or screen recording |
| // added a filter to show form only linked to pages | ||
| facebook_page(frm) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an early exit if frm.doc.facebook_page is empty/falsy. What happens when we clear the Facebook page field and then input in the form field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix

Added a filter to display forms linked to selected Facebook pages.