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