Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

setBehaviorOverrides(overridesObj)

Updated on July 20, 2021

Sets flags to override default behavior at runtime.

Note:
  • This API replaces all existing values of the override keys with the newly specified override keys/values. For example, if overrides had previously been set for dynamicLoadComponents and the dynamicSetCookie (each set to false) and a call to setBehaviorOverrides( { “dynamicSemanticUrl”: false } ), the previously set overrides for dynamicLoadComponents and dynamicSetCookie would be reset back to their default values.
  • The currently supported set of behavior overrides is defined in the setBehaviorOverride(overrideKey, overrideValue) API section.

Returns

Not applicable.

Parameters

NameTypeDescriptionRequired
overridesObjobjectThe JSON object containing the behavior override flags.

Usage example

In this example, the API turns off the behavior to load components dynamically.

PCore.setBehaviorOverrides( { "dynamicLoadComponents": false } );

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us