Form Variables

"It's still web development, it's just way easier!"

Forms & Fields

Colors

Variable Description
<#COLOR_ALIAS> The color alias of a color being saved.
<#DELETE_COLOR_(+Key)> Value is "1" if it was to be deleted.
<#SAVE_COLOR> The color value passed to be saved.

Cookies

Variable Description
<#COOKIE_NAME> Value is the name of the COOKIE_NAME field as passed.
<#COOKIE_VALUE> Value is the name of the COOKIE_VALUE field as passed.
<#COOKIE_DELETE> Value is the name of the COOKIE_DELETE field as passed.
<#EXPIRES_(+ cookie name)> The expiration of the cookie name used.
<#DOMAIN_(+ cookie name)> The domain of the cookie name used.
<#PATH_(+ cookie name)> The path of the cookie name used.
<#SECURE_(+ cookie name)> Returns 1 if the cookie is secure.
<#HTTPONLY_(+ cookie name)> Returns 1 if the cookie has HTTPONLY present.

Fields

Variable Description
<#fields> All the field names and their values in a comma separated format (ready for loop processing).
<#each> The whole value of a loop process. If it's a pair it will be "name=value".
<#name> Any built-in process that splits paired values within a loop will define this special variable. The each function, Set and Value Loops, Queries, Fields Groups, Cookies, etc.
<#value> Any built-in process that splits paired values within a loop will define this special variable. The each function, Set and Value Loops, Queries, Fields Groups, Cookies, etc.

Database Saves

Variable Description
<#APPEND> Database name(s) requested to append new entries to.
<#DELETE> Database name(s) requested to delete entry(s) from.
<#DELETE_KEYS> Database keys requested to delete.
<#FORM_REQUIRE> Value must be "True" (it is by default) in order for Wrival to save data or files from a form.
<#GROUP> Value is the name of the group if this field as passed.
<#KEYS> The keys requested for database updates.
<#KEYS_(+Database Name)> The keys requested for updates for a specific database.
<#KEYS_SAVED> The keys that were saved.
<#KEYS_SAVED_(+Database Name)> A comma-separated list of all the keys saved for a specific database.
<#SAVE> Database name(s) requested to save new entries to.

Folders & Files

Variable Description
<#BASE_FOLDER> Prepend this path when creating new folders when using CREATE_FOLDERS.
<#CREATE_FOLDERS> A list of folders that were requested to be created.
<#DELETE_FILES> A list of files that were requested to be deleted.
<#DELETE_FOLDERS> A list of folders that were requested to be deleted.
<#FILE_CONTENT> This is the text content that is saved to SAVE_FILE.
<#SAVE_FILE> Save the text in a field named FILE_CONTENT to this file (path and file name).
<#SAVE_PATH> This is the path used when saving uploaded files. Works the the field UPLOADS.
<#UPLOADS> This is the group name used for identifying file fields that are to be saved to the path identified in SAVE_PATH.

Templates

Variable Description
<#DELETE_TEMPLATES> An assigned group name for templates that are to be removed from the live and preview realms.
<#PUBLISH_TEMPLATES> An assigned group name for templates that are to be copied from the preview realm to the live realm.
<#RENAME_TEMPLATES> The name of a template being renamed. The new name is assigned in NEW_NAME.
<#REVERT_TEMPLATES> An assigned group name for templates that are to be copied from the live realm over to the preview realm.
<#SAVE_TEMPLATE> The name of a just saved template.
<#TEMPLATE_CONTENT> This is the textarea content that is saved to SAVE_TEMPLATE.
<#TEMPLATE_FOLDER> The base folder for the template.
<#TEMPLATE_LAYOUT> A key to the prebuilt html layouts in the edit realm.
<#WITHDRAW_TEMPLATES> The source code for the template.
For the template files use the UPLOADS variable.

Pages

Variable Description
<#DELETE_PAGES> An assigned group name for pages that are to be removed from the live and preview realms.
<#PAGE_AUX> An auxillery value that can be used for custom dynamics.
<#PAGE_ACCESS> Value is either nothing to allow access to anyone or "1" to only allow selected groups and users.
<#PAGE_CONDITION> If PAGE_TEST is "1" evaluate this.
<#PAGE_CONTENT> This is the textarea content that is saved to SAVE_PAGE.
<#PAGE_CUSTOM> Use variables to dynamically assign a template.
<#PAGE_DESCRIPTION> The page's description.
<#PAGE_EXT> The page's extention. Optional is SAVE_PAGE already has the extention in it (for new pages only where the type may be changed).
<#PAGE_FOLDER> The folder the page is in.
<#PAGE_GROUPS> A list of groups each with an assigned value of "1" that PAGE_ACCESS will reference if its value is "1."
<#PAGE_ONLOAD> Any onload instructions (generally used for populating the onLoad event).
<#PAGE_TEMPLATE> The template to populate the page into.
<#PAGE_TEST> Value is "1" if the PAGE_CONDITION is to be evaluated.
<#PAGE_TITLE> The page's title.
<#PAGE_TOHTML> Convert the page's content to html.
<#PAGE_USERS> A list of users each with an assigned value of "1" that PAGE_ACCESS will reference if its value is "1."
<#PUBLISH_PAGES> An assigned group name for pages that are to be copied from the preview realm to the live realm.
<#RENAME_PAGES> The name of a page being renamed. The new name is assigned in NEW_NAME.
<#REVERT_PAGES> An assigned group name for pages that are to be copied from the live realm over to the preview realm.
<#SAVE_PAGE> The name of a just saved page.
<#WITHDRAW_PAGES> An assigned group name for pages that are to be removed from the live realm.

Objects

Variable Description
<#DELETE_OBJECTS> An assigned group name for objects that are to be removed from the live and preview realms.
<#OBJECT_TYPE> The type of object being saved.
<#PUBLISH_OBJECTS> An assigned group name for objects that are to be copied from the preview realm to the live realm.
<#RENAME_OBJECTS> The name of a object being renamed. The new name is assigned in NEW_NAME.
<#REVERT_OBJECTS> An assigned group name for objects that are to be copied from the live realm over to the preview realm.
<#SAVE_OBJECT> The name of a just saved object.
<#WITHDRAW_OBJECTS> An assigned group name for objects that are to be removed from the live realm.
Object Type: Database
DATABASE_TABBED Save the text as the entire tab-seperated file.
DATABASE_UPLOAD Save the file as the entire tab-seperated file.
DATABASE_PATH The default path for images and files.
DATABASE_PUBLIC Its value of "1" lets Wrival know to treat any data as being from the public and in return makes it safe.
DATABASE_AUTO Automatcially publish variable.
(headername+)_VALUE_DELETE Deletes the file or image for a file type column.
(headername+)_VALUE_KEEP Keep the past file or image for a file type column.
(headername+)_VALUE_HTML Text-to-html record value to be 1, enabling it.
(headername+)_VALUE_ALT Text-to-html record value to be 1, enabling it.
(headername+)_VALUE_IMGATTS Text-to-html record value to be 1, enabling it.
(headername+)_VALUE_LINKURL Text-to-html record value to be 1, enabling it.
(headername+)_VALUE_LINKTARGET Text-to-html record value to be 1, enabling it.
(headername+)_VALUE_LINKATTS Text-to-html record value to be 1, enabling it.
DELETE Database(s) that records were to be deleted from.
DELETE_KEY_(+key) Database(s) records by key that were to be deleted.
DATABASE_HEADERS The total headers to save.
HEADER_(+number) Database header name to save.
HEADER_(+number)_EXPIRES Additional header type value.
HEADER_(+number)_FILE Additional header type value.
HEADER_(+number)_FLOAT Additional header type value.
HEADER_(+number)_INTEGER Additional header type value.
HEADER_(+number)_SELECT Additional header type value.
HEADER_(+number)_TEXT Additional header type value.
HEADER_(+number)_WRIVAL Additional header type value.
Object Type: Email
<#EMAIL_TO> To be the message's to email address.
<#EMAIL_FROM> To be the message's from email address.
<#EMAIL_SUBJECT> An email's subject.
<#EMAIL_FORMAT> An email's format (Text, HTML, or Text to HTML).
<#EMAIL_MESSAGE> An email's message.
Object Type: File
<#FILE_FOLDER> The base folder that the file is to be saved to.
<#FILE_UPLOAD> The file upload.
Object Type: Image
<#IMAGE_FOLDER> The base folder that the image is to be saved to.
<#IMAGE_UPLOAD> The image upload.
<#IMAGE_ALT> Alt description, which populates the ALT attribute.
<#IMAGE_ATTS> Additonal attributes to be included in the IMG tag.
<#IMAGE_LINK> The URL of where to link to.
<#IMAGE_TARGET> The target window, which populates the TARGET attribute.
<#IMAGE_ATTS2> Additional attributes to be included in the A tag.
Object Type: Increment
<#INCREMENT_NEW> The new integer to start the increment as.
Object Type: Loop
<#LOOP_SOURCE> The source values (list item(s), paired value(s), variable(s), database(s)) that the loop will process.
<#LOOP_TYPE> Represents which type was selected (As Values, Variables, or Fixed Amount).
<#LOOP_UNIQUE> Skip duplicate list items, names, or keys.
<#LOOP_SORT> Sort by various options.
<#LOOP_HEADERS> If sort by headers or sort by match ratings is selected use this value to know what to do.
<#LOOP_INVERT> Reverse the order.
<#LOOP_HEADER> Content prepended before loop results if any of the iterations were True.
<#LOOP_CONDITION> the condition to test for each iteration.
<#LOOP_TRUE> If an iteration is True return this.
<#LOOP_FALSE> If an iteration is False return this.
<#LOOP_FOOTER> Content appended after loop results if any of the iterations were True.
<#LOOP_NONE> If no loop was True return just this.
Object Type: Random
<#RANDOM_POOL> The type of random pool.
<#RANDOM_CUSTOM> If custom pool was selected use the values in this field as the pool of values.
<#RANDOM_LENGTH> The amount of results to randomize.
<#RANDOM_UNIQUE> Don't allow duplicate results.
Object Type: Text
<#TEXT_TOHTML> Value is "1" if the text is to be converted to HTML.
<#TEXT_CONTENT> The text of the object.
Object Type: Variable
<#VARIABLE_VALUE> The variable's value.

Folders & Access

Variable Description
<#FOLDER> The folder that was affected by the FOLDER_ACCESS.
<#FOLDER_ACCESS> If "1" FOLDER was made password-protected, else it was openned up.

Users & Groups

Variable Description
<#DELETE_GROUPS> The value is the field group name of groups to delete.
<#DELETE_USERS> The value is the field group name of users to delete.
<#GROUP_DESCRIPTION> A group's description.
<#SAVE_GROUP> A group saved.
<#SAVE_USER> A user saved.
<#USER_DESCRIPTION> A user's description.
<#USER_NAME> A user's real name.
<#USER_PASSWORD> A user's password.
<#USER_REALMS> A user's realm type.

Others

Variable Description
<#NEW_NAME> A required field used with RENAME_TEMPLATE, RENAME_PAGE, or RENAME_OBJECT.
<#RESULT> The resulting message of an action performed.
<#RESULT_LONG> The resulting message of an action performed, includes paths of folders and files.
<#CMS_SAVE> The value is set to "1" when Wrival CMS is saving to an object in the edit realm.