Toggle menu

Identify jQuery in Forms

Document Page Icon

This utility end point returns a list of forms that potentially contain jQuery.

The 26th April Standard Site releases (Standardised Site iCM4j 18.0.1330 and Standardised Site iCM.NET 15.0.0) upgraded jQuery from version 2.2.4 to 3.7.1, which deprecated some features. To make it easier to identify any of your forms that need to be reviewed, this end point searches through your forms and returns the names and IDs of any that might use jQuery.

The search will probably return false positives, because it searches for $( in your form content. It also identifies any use of jQuery, not just the elements that are deprecated.

Running the End Point

Extract and import the file in  (ZIP) [1KB](opens new window) (see Importing and Exporting End Points for a reminder). After the import, you'll see GOSS.support.findJQueryForms.

On the Testing tab, add the ID of the form group you'd like to search in as the parentGroupId. The search will search this group and any child groups:

jQuery Utility - Request Parameters
 

Run the test to return the list of forms:

jQuery Utility - Response
 

Search in your Form

When you are editing a form you can use the search in the left-hand actions panel to find where jQuery is being used:

jQuery Utility - Search in Form Design
 

In this case, jQuery is being used, but it's not a breaking change listed on https://jquery.com/upgrade-guide/3.0/ (opens new window) - although I will probably think of a nicer way to implement the script that doesn't use jQuery at all.

Last modified on May 10, 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon