Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Can you highlight your code with the syntax highlighter, please?
onFormRender won't matter (do not make that change). It's already set to run on every render. But it only checks the dropdown list once for performance reasons. I added the option to ignore if the dropdown was already populated. Set options.renderOnlyOnce to false to have it render every time.
@Arjun_NS I don’t understand the question?
⚠️ This code does not work in any version of Internet Explorer, as it relies on NodeList#forEach. It could be adapted for IE with a few more lines of JS.You probably know that email addresses are teeeeeechnically case-sensitive but, like most sensible creatures, you treat them as if they’re case-in...
📣 This note from 2018 was moved from another section to be referenced in an upcoming post.This one's good for getting your know-it-all on.Despite it being commonplace to “fix up” email addresses by lowercasing them — or, in financial/government contexts, uppercasing them — email addresses are clea...
⚠️ This code does not work in any version of Internet Explorer, as it relies on URLSearchParams and Custom Elements v1. An earlier post showed how to append form field values to the Thank You URL’s query string, but admittedly hand-waved how you would output query params on that next page. Indeed,...
There’s a well-traveled Forms 2.0 JS snippet from this Developer Blog post that gets copy-pasted all over:MktoForms2.whenReady(function (form) { form.addHiddenFields({ _mkt_trk: "" }); form.onSubmit(function (form) { form.vals({ _mkt_trk: "" }); });}) And it works...
@Michael_Florin you can set any Type you want!
The first thing I teach in Velocity classes is that VTL (Velocity Template Language) is essentially a simpler way to write Java, and totally unrelated to JavaScript.VTL frees you from many Java concerns. You don’t need a main method. You don’t need to think as much about classes and objects (though ...