ActiveCampaign / activecampaign-api-php

MIT License
115 stars 76 forks source link

Form API response CSS classes #25

Closed mthommes closed 9 years ago

mthommes commented 9 years ago

When you submit a subscription form through our PHP wrapper (Ajax), we include some JavaScript that updates the DOM with a result message (IE: "Contact added," "Contact updated," etc). I added a class to the message div in the DOM based on success or failure with the Ajax call. This way developers can style the inline response message based on success or failure.