The gform.config object provides utility functions for retrieving, updating, and validating forms configuration settings in JavaScript. It includes methods for working with both local and AJAX loaded configuration data.
Methods
Method
Description
getConfig
Retrieves a value from a specific configuration group.
updateConfig
Updates or merges new values into an existing configuration group.
getFormConfig
Retrieves a value from a form-specific configuration object.
getConfigViaAjax
Fetches a configuration value dynamically using AJAX.
isValid
Checks whether a value is considered valid (not null, undefined, or empty).
cleanPath
Normalizes a path by removing extra slashes and whitespace.