Overview
Web Forms passes the following properties of the "standard_obj" denoted by "s" into both the "code" and "include/exclude" function. Whereas "x" is the form data.
Example
For example, to access "protocol" in either the "code" or "include/exclude" function, you would write "s.protocol".
STANDARD_OBJ.protocol = PROTOCOL;
STANDARD_OBJ.protocol_user_override = PROTOCOL_USER_OVERRIDE;
STANDARD_OBJ.widget_type = WIDGET_TYPE;
STANDARD_OBJ.primer_cache_version = PRIMER_CACHE_VERSION;
STANDARD_OBJ.parent_url = PARENT_URL;
STANDARD_OBJ.use_bugsnag = PRIMER_USE_BUGSNAG;
STANDARD_OBJ.use_console = SHOW_ERRORS;
STANDARD_OBJ.is_preview = IS_PREVIEW;
STANDARD_OBJ.is_responsive = PRIMER_USE_RESPONSIVE;
STANDARD_OBJ.is_variation = IS_VARIATION;
STANDARD_OBJ.user_id = VENDOR_GUID;
STANDARD_OBJ.user_guid = VENDOR_GUID;
STANDARD_OBJ.vendor_id = VENDOR_GUID;
STANDARD_OBJ.vendor_guid = VENDOR_GUID;
STANDARD_OBJ.lightbox_id = LIGHTBOX_GUID;
STANDARD_OBJ.lightbox_guid = LIGHTBOX_GUID;
STANDARD_OBJ.lightbox_short_id = LIGHTBOX_SHORT_ID;
STANDARD_OBJ.lightbox_name = LIGHTBOX_NAME;
STANDARD_OBJ.variation_id = VARIATION_GUID;
STANDARD_OBJ.variation_guid = VARIATION_GUID;
STANDARD_OBJ.variation_short_id = VARIATION_SHORT_ID;
STANDARD_OBJ.variation_name = VARIATION_NAME;
STANDARD_OBJ.lightbox_or_variation_id = LIGHTBOX_OR_VARIATION_GUID;
STANDARD_OBJ.lightbox_or_variation_guid = LIGHTBOX_OR_VARIATION_GUID;
STANDARD_OBJ.lightbox_or_variation_short_id = (IS_VARIATION ? VARIATION_SHORT_ID : LIGHTBOX_SHORT_ID);
STANDARD_OBJ.lightbox_or_variation_name = (IS_VARIATION ? VARIATION_NAME : LIGHTBOX_NAME);
Comments
0 comments
Please sign in to leave a comment.