diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts index fb530fa2a7..bc845df237 100644 --- a/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts @@ -24,7 +24,26 @@ export const RUN_BEHAVIOR_VALUES = [ ]; export const JS_OBJECT_RUN_BEHAVIOR_VALUES = [ - ...RUN_BEHAVIOR_VALUES, + { + label: "Automatic", + subText: + "JS function runs on page load or when a variable it depends on changes", + value: ActionRunBehaviour.AUTOMATIC, + children: "Automatic", + }, + { + label: "On page load", + subText: "JS function runs when the page loads or when manually triggered", + value: ActionRunBehaviour.ON_PAGE_LOAD, + children: "On page load", + }, + { + label: "Manual", + subText: + "JS function only runs when called in an event or JS with functionName()", + value: ActionRunBehaviour.MANUAL, + children: "Manual", + }, { label: "On page unload", subText: "Query runs when the page unloads or when manually triggered",