Programming

Increment Repeater Field Row Counter

This is a quick snippet to increment a row counter for a repeater field. The Slack Formidable Community member that asked how to do this is using the frm_repeat_start_rows filter to pre-load 10 rows in the repeaters. The first field in the repeater is a counter. View the code on Gist. To use, change the [Read More…]

Add a Data Attribute to Any Input Field

HTML data-* Attribute HTML Global attributes give elements meaning and context. Global attributes are common to all HTML elements; they can be used on all elements, including Formidable’s input fields, though they may have no effect on some elements. One attribute that is particularly useful is the data-* attribute. The data-* attribute forms a class [Read More…]

Writing Transportable Code: Keys vs. IDs

When you drag and drop a field onto a form, two pieces of data to identify the field in code are created. The first, the field’s ID is created by MySQL using an auto increment field. This is a standard methodology used throughout WordPress. WordPress creates an ID for every single data element added to [Read More…]