Magic Icon Converting Fields to URL Friendly Fields: Magic JavaScript

Quick Jump ↵

Usage

Add data-mjf="s2lcus" data-mjf_s2lcus="SLAVE_FIELD_ID" id="FIELD_ID" to your <input> or <textarea> tag.

Add <script type="text/javascript">$m.wand.s2lcus = true;</script> inside your <body> tag.

Example

Text Field
The first field will dump its lowercased, URL friendly contents into the second field

Notes

Multiple underscores in a row are replaced with a single underscore.

Leading and trailing underscores along with apostrophes are stripped.

« Back to the main documentation