Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_jquery_ui_base_url

Some jQuery UI styles and scripts are loaded from an external CDN. Formidable Forms loads them from cdnjs (cdnjs.cloudflare.com/ajax/libs/jqueryui/####, where #### is the jQuery UI version). This hook allows this URL to be changed. These files load only when Formidable → Global Settings → General Settings → Date Picker Library is set to jQuery. With Flatpickr, the hook isn't used. Files loaded from this URL include:

  • The jQuery UI theme stylesheet for the datepicker theme saved in your form's style, when it isn't the default theme. The default theme is bundled with Formidable and loads from the plugin. Other themes load from this URL unless saved in your uploads folder. The style settings offer other themes only for a style that already uses one, such as an older style or one set with code.
  • The jQuery UI translation (i18n) script for a datepicker with a language set, when the Formidable API add-on loads a form on another site

Usage

add_filter( 'frm_jquery_ui_base_url', 'my_jquery_ui_base_url' );

Parameters

  • $url (string): The base URL, without a trailing slash. Its last path segment is the jQuery UI version.

Examples

Use a custom URL

Load the jQuery UI files from your own host. Replace https://example.com/jqueryui/ with your URL. The files must use the same folders as the CDN, such as /1.14.2/themes/smoothness/jquery-ui.min.css for jQuery UI 1.14.2.

add_filter( 'frm_jquery_ui_base_url', 'my_jquery_ui_base_url' );
function my_jquery_ui_base_url( $url ) {
    // Keep the jQuery UI version as the last part of the URL.
    return 'https://example.com/jqueryui/' . basename( $url );
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2026 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Don't forget your purchase!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms