Modifying Layouts
(→Layouts Explained) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
The Layout is what defines what elements appear and their position on the page. | The Layout is what defines what elements appear and their position on the page. | ||
You are required to have an Object and Elements created before you can use the Layout. | You are required to have an Object and Elements created before you can use the Layout. | ||
− | < | + | |
− | + | You can create multiple layouts within a single object however, there can only be one layout of type <b>Main</b>, which is the one that is used on forms in the system. Any other alyout created in thee same object can only be used for surveys and dashboard content. | |
− | < | + | |
+ | <b>You must select the Save button or your changes will not be reflected.</b> | ||
+ | |||
+ | ==Creating a New Layout== | ||
+ | # After logging into the Subscribe-HR portal, select the <b>Development</b> TAB. | ||
+ | # Select the <b>Objects</b> folder. | ||
+ | # Select the Object you wish to modify | ||
+ | # Select the <b>Layout</b> SubFolder.<br> | ||
+ | # Select the <b>Create New</b> button on the top left. | ||
+ | # Enter the name of your custom layout. <b>Note:</b> this is not visible to the user and is used solely to distinguish between multiple layouts. | ||
+ | # Select <b>JavaScript</b> and enter your JavaScript into the editor. | ||
+ | # Select the green <b>Save</b> button on the top right side of the page. | ||
==Modifying Layouts== | ==Modifying Layouts== | ||
Line 15: | Line 26: | ||
# Select the <b>Objects</b> folder. | # Select the <b>Objects</b> folder. | ||
# Select the Object you wish to modify the Layout of.<br>If you wish to create a new object please see the documentation [[Creating-new-objects-in-Subscribe-HR|Creating New Objects]] and [[Creating-new-elements-in-Subscribe-HR|Creating New Elements]]. | # Select the Object you wish to modify the Layout of.<br>If you wish to create a new object please see the documentation [[Creating-new-objects-in-Subscribe-HR|Creating New Objects]] and [[Creating-new-elements-in-Subscribe-HR|Creating New Elements]]. | ||
− | # Select the <b>Layout</b> SubFolder.<br> | + | # Select the <b>Layout</b> SubFolder.<br> |
− | # Select and drag | + | # select the layout you wish to edit. |
− | # Select | + | # Select and drag the elements in the order you wish them to appear in the record. |
− | + | # Select <b>Remove</b> at the bottom left of each field to hide it from view. | |
− | + | # Select <b>Add Field</b> to make an additional element viewable in the record. To select which field is displayed, click the drop down and make a selection. | |
− | + | # Select <b>Add Heading</b> to separate fields with the heading you enter, on the same tab/page. | |
− | + | # Select <b>Add HTML</b> to add a field that accepts text in HTML format. | |
− | + | # Select the green <b>Save</b> button on the top right side of the page. | |
− | + | ||
− | + | ||
====New tab==== | ====New tab==== | ||
− | By selecting the <b> | + | By selecting the <b>Add Tab</b> option at the bottom of the page, you are creating a new page off the General page under the same Object. This is accessible via a TAB that is present on the top of the General page. |
<br> | <br> | ||
You should notice that an empty page appears below the General page on the Layout screen. The newly created TAB will not be saved unless the page contains at least one element. | You should notice that an empty page appears below the General page on the Layout screen. The newly created TAB will not be saved unless the page contains at least one element. | ||
− | # Select the <b> | + | # Select the <b>Add Tab</b> option, located at the very bottom of the layout page. |
− | # | + | # Enter the name of the tab e.g. Safety |
− | # | + | # Select <b>Add Field</b> and select the field that you want to appear by clicking the drop down and choosing on of the options. |
− | # Select the <b>Save | + | # Select the green <b>Save</b> button on the top right side of the page. |
− | ==== | + | ====Add Heading==== |
− | To add a heading | + | To add a heading: |
− | # Select the <b> | + | # Select the <b>Add heading</b> option. |
# Drag the heading to where you would like it in the form. | # Drag the heading to where you would like it in the form. | ||
# Insert Text into the heading. | # Insert Text into the heading. | ||
− | # Select the <b>Save | + | # Select the green <b>Save</b> button on the top right side of the page. |
====Custom HTML==== | ====Custom HTML==== | ||
Custom HTML can be used to create totally custom section where you can change the layout the fields in the form. TO add fields, you will need to write the field name into the HTML. The field names can be found in the Developer Tool, by clicking on the element name and use the "Element Field Name". Please not that this tool is for more Technically Orientated users. | Custom HTML can be used to create totally custom section where you can change the layout the fields in the form. TO add fields, you will need to write the field name into the HTML. The field names can be found in the Developer Tool, by clicking on the element name and use the "Element Field Name". Please not that this tool is for more Technically Orientated users. | ||
− | # Select the <b> | + | # Select the <b>Add HTML</b> button. |
# Move the Custom area around in the form to the desired location. | # Move the Custom area around in the form to the desired location. | ||
− | # Type in the | + | # Type in the required HTML. |
− | # Select the <b>Save | + | # Select the green <b>Save</b> button on the top right side of the page. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ====Edit | + | ====Edit JavaScript==== |
− | The Edit | + | The Edit JavaScript option allows you to add some custom JavaScript to a form. This option loads a JavaScript editor in which you can write your custom JavaScript. |
− | # Select the <b> | + | # Select the <b>JavaScript</b> option. |
− | # Enter your | + | # Enter your JavaScript into the editor. |
− | # Select the <b>Save | + | # Select the green <b>Save</b> button on the top right side of the page. |
<br> | <br> | ||
− | ===The Fields Box=== | + | <!--===The Fields Box=== |
The Fields box contains new elements that have been created but not yet placed in a layout. | The Fields box contains new elements that have been created but not yet placed in a layout. | ||
<br> | <br> | ||
Line 87: | Line 91: | ||
# To change the order that the elements appear in simply drag the desired element into position. | # To change the order that the elements appear in simply drag the desired element into position. | ||
# Select [Save Layout]. | # Select [Save Layout]. | ||
− | The first element in the list will appear as the first on the search form from the left. | + | The first element in the list will appear as the first on the search form from the left. --> |
<br><br>[[File:subscribehr_logo.gif]] | <br><br>[[File:subscribehr_logo.gif]] |
Latest revision as of 03:56, 11 December 2018
Contents
Layouts Explained
The Layout is what defines what elements appear and their position on the page. You are required to have an Object and Elements created before you can use the Layout.
You can create multiple layouts within a single object however, there can only be one layout of type Main, which is the one that is used on forms in the system. Any other alyout created in thee same object can only be used for surveys and dashboard content.
You must select the Save button or your changes will not be reflected.
Creating a New Layout
- After logging into the Subscribe-HR portal, select the Development TAB.
- Select the Objects folder.
- Select the Object you wish to modify
- Select the Layout SubFolder.
- Select the Create New button on the top left.
- Enter the name of your custom layout. Note: this is not visible to the user and is used solely to distinguish between multiple layouts.
- Select JavaScript and enter your JavaScript into the editor.
- Select the green Save button on the top right side of the page.
Modifying Layouts
- After logging into the Subscribe-HR portal, select the Development TAB.
- Select the Objects folder.
- Select the Object you wish to modify the Layout of.
If you wish to create a new object please see the documentation Creating New Objects and Creating New Elements. - Select the Layout SubFolder.
- select the layout you wish to edit.
- Select and drag the elements in the order you wish them to appear in the record.
- Select Remove at the bottom left of each field to hide it from view.
- Select Add Field to make an additional element viewable in the record. To select which field is displayed, click the drop down and make a selection.
- Select Add Heading to separate fields with the heading you enter, on the same tab/page.
- Select Add HTML to add a field that accepts text in HTML format.
- Select the green Save button on the top right side of the page.
New tab
By selecting the Add Tab option at the bottom of the page, you are creating a new page off the General page under the same Object. This is accessible via a TAB that is present on the top of the General page.
You should notice that an empty page appears below the General page on the Layout screen. The newly created TAB will not be saved unless the page contains at least one element.
- Select the Add Tab option, located at the very bottom of the layout page.
- Enter the name of the tab e.g. Safety
- Select Add Field and select the field that you want to appear by clicking the drop down and choosing on of the options.
- Select the green Save button on the top right side of the page.
Add Heading
To add a heading:
- Select the Add heading option.
- Drag the heading to where you would like it in the form.
- Insert Text into the heading.
- Select the green Save button on the top right side of the page.
Custom HTML
Custom HTML can be used to create totally custom section where you can change the layout the fields in the form. TO add fields, you will need to write the field name into the HTML. The field names can be found in the Developer Tool, by clicking on the element name and use the "Element Field Name". Please not that this tool is for more Technically Orientated users.
- Select the Add HTML button.
- Move the Custom area around in the form to the desired location.
- Type in the required HTML.
- Select the green Save button on the top right side of the page.
Edit JavaScript
The Edit JavaScript option allows you to add some custom JavaScript to a form. This option loads a JavaScript editor in which you can write your custom JavaScript.
- Select the JavaScript option.
- Enter your JavaScript into the editor.
- Select the green Save button on the top right side of the page.