Skip to content

gw-disable-expired-forms.php: Added snippet to disable expired forms. #892

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2696916682/70897

Summary

A snippet that checks on load if the scheduled end date is beyond a given range and if so, updates the form status to "inactive". This checks all forms globally on load but only apply if a form schedule end date is set and that date is beyond a threshold value.

Snippet Demo: https://www.loom.com/share/e2eff9a9b4744f1eb9fc8e1f2e8fd1cb

Copy link

github-actions bot commented Sep 20, 2024

Messages
📖 A new snippet with a Loom video? Magical! 📹
📖 Merlin would give this scroll the highest of praises. Cheers for adding this new snippet to the library! 🪄

Generated by 🚫 dangerJS against fa37967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant