Comments (1)
Possible option on how to do this.
- Create a jQuery DOM tree from the form mark-up
- Query the field using
[name="EMAIL"]
(for example) (case insensitive) - If it exists, replace Add to form button with Replace in form
Then, after clicking the replace button, do the following:
- If wrap in paragraph? is checked, query the parent paragraph. If it only has one form field in its children elements, replace it completely. Otherwise, just replace the form field with the new HTML.
- Convert the HTML DOM tree back to HTML
- Replace complete form mark-up
from mailchimp-for-wordpress.
Related Issues (20)
- Integration with Ninja Forms 3: "Merge field mappings" not showing in form action. HOT 1
- Can't access the forms overview, Custom error messages are being ignored. Language doesn't seem to sync HOT 1
- Urgent problem with my subscribers list disappeared from MailChimp
- Translation fail in error message HOT 1
- Feature request: Add integration with Simple Basic Contact Form plugin
- MC4WP form API sends opt-out to MailChimp Audience database HOT 18
- Indicate Woocommerce HPOS compatibility HOT 2
- Email Subscribe form error HOT 2
- MC4WP Top Bar does not show messages after subscribe HOT 1
- Two suspicious emails with MC4WP in address opted in HOT 2
- Last Quarter time period in Reports generates an error
- Request: Add $postid to comment form integration HOT 1
- Inserting list choice uses list/audience names instead of IDs HOT 1
- Code shows instead of form HOT 1
- Error in the widget footer columns HOT 1
- Position field is not disabled in woocommerce integration page
- "There has been a critical error on this website" when opening MC4WP form option HOT 1
- Deprecated: Automatic conversion of false to array is deprecated in /plugins/mailchimp-for-wp/includes/admin/class-review-notice.php on line 85
- Mailchimp subscription html markup in wordpress website is not sending email to customers instead directly registering inside the mailchimp audiences
- MC4WP SIGN UP FORM NOT WORKING HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailchimp-for-wordpress.