Elements _ Fabrik

Embed Size (px)

Citation preview

  • 8/18/2019 Elements _ Fabrik

    1/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 4

    Each element can be selected with the check box to the left of its name. Once selected it can be altered by

    clicking on the buttons in the top right hand corner:

    New  - Creates a new element

    Edit  - Edits the element (note that you can also edit the element by clicking on its name)

    Copy  - Copies the element

    Publish - Sets the state of the element to published. Note that other element publishing options make

    effect how the element is displayed

    Unpublish - Sets the element's state to unpublished

    Show in list  - Makes the element appear as a column when viewed in a list

    Remove from list  - Hides the element when viewing a list

    Check In - Checks in the element

    Trash  - Trashes the element

    Options  - Is the general Fabrik Options area

    Help  - links to the related Fabrik wiki article

    Note: The standard Joomla order widget defines the order in which the elements appear within their groups. Alsonote that group ordering, however, is handled by editing the form, selecting the groups tab and reordering the

    group's in the list.

    The element list can quickly become quite long. You can use the filters above the element list to show only the

    elements you are working on.

    The "Full element name" field shows the text that you should use to access the element when using

    placeholders  i.e.

    Code (Text):

    http://fabrikar.com/forums/index.php?wiki/placeholders/

  • 8/18/2019 Elements _ Fabrik

    2/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 5

    Details Tab (top)

    Id  - This is the elements id number as recorded in the database table.

    Name - The element's name, this is used internally to represent the element. If you are saving the form to

    a database table this name is used to define the column name that correlates to the element. No white

    space or non-alpha numeric characters are allowed in the name (except for "-" and "_", but NOT at the

    begin or end of the string).

    You can't use Fabrik reserved words as element names ("task", "view", "layout", "option", "formid",

    "submit", "ul_max_file_size", "ul_file_types", "ul_directory", "list id", 'rowid', 'itemid', 'adddropdownvalue',

    'adddropdownlabel', 'ul_end_dir')

    NEVER rename an element if you are not 100% sure that the name is not used anywhere, e.g. as PK

    element, in joins, dbjoin/CDD elements, linked elements, custom code, placeholders...

    Label - This is the text that appears next to the element in the form. In addition it is the default text that

    appears at the top of the element's column in the list view - this can be overridden by entering a 'Heading

    label' - found under the 'List settings' tab.

    Group- This is required, you need to specify a group that the element belongs to.

    Hint: if you are entering a series of elements into the same group, filter the element list by said group

    and when you come to add a new element this drop-down will default to the group you filtered on.

    Order  - If creating a new element then the element is automatically added to the bottom of the selected

    group. If editing the element then this is a dropdown where you can select the order that the element

    appears within the group.Element type  - Select the element's plug-in. The options subsection will be filled with the selected plug-

    ins options.

    Options (top)

    These are specific to the selected Element type, see below for a detailed description of each element.

    Note that the "Hidden" option that most elements have cannot be used in conjunction with the Javascript

    show/hide events. Selecting "Hidden" means that the element is never rendered for display, rather it is appended

    as a simple hidden input on the form. If you need to be able to show an element which is hidden on page load,

    but can subsequently be shown via JavaScript events on another element, you'll need to add a 'load' JavaScript

    event to the element you use to control visibility.

    {myprefix_mynewlist___elementname}

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    3/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 6

    Publishing Tab (top)

    Publishing (top)

    Status  - State if the element is published or not, this effects if it is shown in the form and list.

    Add to page title  - If yes selected then the element's data will be appended to the browser's title.

    RSS (top)

    These options are only applicable if the element's table has been set up to create a RSS feed of its data

    Show in RSS feed - Selecting 'yes' will add this element's data to the feed items.

    Include label  - If "show in RSS feed" is set to 'yes' then selecting 'yes' here will add the element's label

    before the element's data in the RSS feed.

    Use as pseudo key

    Tips (top)

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    4/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 7

    Tips are notes that appear when you hover over the element, they are used to provide extra information to the

    user filling in the form, generally explaining what type of information is expected.

    Tip text  - Enter some text here that will be used as the hover tip content which is shown when the mouse

    hovers over the element's label in the form view.

    Eval  - Evaluate the tip as a PHP expression, the PHP should return the desired tip text.

    Tips over element  - If no selected then the tip only appears when you hover over the element label. If yes

    selected then the tip appears when you hover over the label or the element.

    Location  - The location of the tooltip in relation to the element label or, if 'Tips over element' is selected,

    the label and element.

    Show tips in detail view  - Show the tip when in the detailed view. Note that tips are always applied in the

    form view.

    Show tips in list view  - Show tips in list view - useful if you make the tip text a placholder.

    Comment  - An internal memo which allows you to state the purpose of the element. This is not visible to

    the people filling in the form.

    Access Tab (top)

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    5/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 8

    Editable - The viewing access level required to view the editable version of the element.

    Viewable - The viewing access level required to view the non-editable version of the element.

    Encrypt data   - Uses mySQL's AES_ENCRYPT to encrypt the form's data. Note: for secure submission of

    the data to the server SSL is required. Note: only supported by field and textarea elements. Note:

    encrypted data is not searchable by the table's 'advanced search all' option.

    List view settings Tab (top)

    These options define how the element should behave when in the list view.

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    6/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 9

    List Settings (top)

    Show in list  - Select this option to display the element in the list view.

    Link to details  - Select this option to enable the element label to provide a link in the list view to the

    detailed or form view. The link is going to the form if the user has edit access.If you want to go to the

    details view in any case you have to define a custom link (see Custom link examples).

    Allow ordering  - Turns the list's headings into a link, clicking on this link will reorder the data by thevalues in this element's fields.

    Heading label  - Override the use of the element's label as this element's column heading in the list view.

    Static icon file (no .ext!)- Insert a file name which you want to show in list view instead of value or label

    text. The file name must be WITHOUT EXTENSION and the file must located in the Joomla 'images' folder

    or in one of its subfolders!

    Example 1: you use an element that links to some other website (always the same) and you want to

    show this website's logo instead of link text. Assuming the site is Wikipedia and the needed file is

     wikipedia.png you write just: wikipedia (or: subfolder/path/wikipedia)

    Example 2: you use the list plugin " Order". In some cases you perhaps don't want to show numbers

    in the order field that you need in list view just as a drag handle. So you can point it e.g to some up-

    http://fabrikar.com/forums/index.php?wiki/List_plugin_orderhttp://fabrikar.com/forums/index.php?wiki/element-custom-link-examples/http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    7/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 10

    down arrow image in your preferred location.

    Custom link - If "link to details" is 'yes' then the url given here overwrites the standard link to the details

    url. (see Custom link examples)

    Use as row class  - If set to 'row' then each of the list view's rows will have this elements value added as an

    additional class name. This allows you to format rows based on the list view's data. If the value is numeric

    (or starts with a number) we prepend the element's (short) name to the class name, like myelement3

    instead of just 3, as CSS classes cannot start with a number.

    Icons (top)

    Replace with icons - If set to yes then Fabrik will look for images with certain names, in the standard

    image override locations. If found then the data is replaced with the image. See Image overrides for thefolder locations. The file names will be "cleaned" (converted to lower case and all non-alphanumeric chars

    replaced with _ ) and searched for in this order:

    if a subdirectory is defined: myfolder/{value}.{ext} (since 2014-08-29 fabrik 3.2+)

    {elementname}_{value}.{ext} (since 28/28/2013 fabrik 3.0+)

    {value}.{ext} (since 22/28/213 fabrik 3.0+)

    {label}.{ext}

    Icon hover text

    Icon subdirectory: If a subdir is set (e.g. myfolder/) then Fabrik will first look for icons in [standard image

    override locations]/myfolder/ (e.g. JOOMLAROOT/images/myfolder).

    Static icon file: Insert a file name which you want to show in table view instead of value or label text. The

    file name must be WITHOUT EXTENSION and the file must located in the Joomla 'images' folder or in one

    of its subfolders! Example: you use an element that links to some other website (always the same) and

    you want to show this website's logo instead of link text. Assuming the site is Wikipedia and the needed

    file is wikipedia.png you write just: wikipedia (or: subfolder/path/wikipedia)

    Filters (top)

    Filters are created above your list and allow your users to filter the data contained within your list.

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/Image_overrideshttp://fabrikar.com/forums/index.php?attachments/element_list_icons1-jpg.11704/&temp_hash=4f204364407c291a84042a95d2cf62b1http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/element-custom-link-examples/

  • 8/18/2019 Elements _ Fabrik

    8/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 11

    Filter type- Defines what filter to use.

    None  - No filter is assigned for this element.

    Field  - A free form text field is displayed allowing the user to search for data within this column.

    Dropdown  - A drop down list of all of the list's distinct values for this element's data. If creating a drop

    down filter from a database join element then the drop down contains all the data found in the joined

    table.

    Autocomplete  - A field which, when the user starts typing, updates a dropdown list of potential

    matches.

    Range  - Search for data between two given values, this is mostly applicable to date elements, for

    creating a ranged date filter.

    Exact match  - If yes selected then only exact matches are returned, if no selected partial matches are

    returned, e.g. if you searched on '1' with exact match off any records containing the value of '1' would be

    returned, e.g. '1' or '10', or '91'. Turning exact match on with the same filter value would only return the

    record with the value of '1'">

    Example2: table x has an element name and 3 rows containing Rob,

    Robert and Hugo as data. The user selects Rob from the 'name's' drop down

    filter.

  • 8/18/2019 Elements _ Fabrik

    9/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 12

    If this option is ticked then only one record - containing Rob - will be displayed;

    if this option is not ticked then two records - containing Rob and Robert - will be

    displayed.

    Filter access  - States which user group is allowed to use the filter.

    Full word match - When searching using a field filter and with this option checked, only search terms with

    spaces either side (ie complete words) will be returned

    Required  - If yes is selected then the filter must be used in order to display data in the list.

    Filter data - Define what data to show in filters when rendered as a dropdown or range.

    If Show table data  selected then only values entered in this element's column will be shown in the

    filter.

    If Show all   then all possible options will be shown (applies to 'list' type elements such as

    checkboxes, radiobuttons, database joins).

    If default   selected then the global configuration setting will be used (found in tables->parameters-

    >Filter data).

    Order by  - Order by label or value.

    Include in search all  - Determines if the element's data is search-able via the table's search all feature.

    Include in advanced search  - Determines if the element is selectable as an option in the table's

    advanced search feature.

    CSS (top)

    Heading class  - Specify a class name for the element's column heading e.g. "myHeading"

    Heading CSS  - Specify some css for the element's column heading e.g. "font-color:red"

    Cell class - Specify a class name for the element's column e.g. "important"

    Cell CSS  - Specify some css name for the element's column e.g. "font-color:red"

    Calculations (top)

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    10/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 13

    Calculations are shown at the bottom of the table, and contain mathematical operations performed on the

    element's data.

    Sum (top)

    Sum the column total  - If yes select then the elements data is added up

    Sum label  - The label placed next to the sum calculation, leave blank to default to 'Sum'

    Sum access - Determines which viewing access level can view the sum

    Split on - Specify an element to split the sum calculations into.

    For example, if we have a table:

    Name

    Surname

    Age

    Rob

    Clayburn

    29

    Alice

    Bird

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    11/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 14

    25

    Stan

    Clayburn

    80

    And we choose to split the sum calculation on “surname” then we would get 2 results:

    sum Clayburn = 109

    sum Bird = 25

    Average (Mean) (top)

    Average the column total - If yes selected then the average value of the element's data is calculated

    Average label  - The label placed next to the average calculation, leave blank to default to 'Average'

    Average access  - Determines which user group can see the average

    Round - Integer number to round the average result to

    Split on  - Same principal as the sum split on option

    Median (top)

    Column median  -Calculate the element's data's median value

    Median label  - The label placed next to the median calculation, leave blank to default to 'Median'.Median access - Determines which user group can see the median

    Split on - Same principal as the sum split on option

    Count (top)

    Count records - Count the total number of records found

    Count label  - The label placed next to the count calculation, leave blank to default to 'Count'.

    Count value  - Only record's whose element data match the value entered here will be included in the

    count total

    Count access -  Determines which user group can see the count

    Split on  - Same principal as the sum split on option

    Custom Calculation (top)

    Custom calc  - In the list view create a custom calculation.

    Count label  - The label placed next to the custom calculation, leave blank to default to 'Custom'.

    Custom query  - Query fragment to generate result using %s to represent the field name for this element

    (do NOT use the actual field name, you must use %s). So to generate the population standard deviation for

    this element, this would be "STDDEV_POP(%s)&quot (no quotes).

    Custom access  - Who can see the custom result.

    Split on  - Same principal as the sum split on option.

    Split PHP  - If using Split feature, you need to provide the PHP code which will return your calculation,

    given a set of data in the array $data. For example, to return the standard devation (assuming you have the

    PECL stats library installed) would be "return stats_standard_deviation($data);" (no

    quotes). No placeholder replacement is done on this code. You may use any valid PHP, which operates on

    $data and returns a single result.

    Validations Tab (top)

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    12/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 15

    Validations ensure that the data entered by your users matches what you require from them. In Fabrik,

    validations are plug-ins.

    The Validation Plugin's  page has a complete list of available plug-ins with information about each plugin.

    Action - the validation to perform

    Published - is the validation published?

    Show validation icon -

    JavaScript Tab (top)

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/validation-plugins/

  • 8/18/2019 Elements _ Fabrik

    13/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 16

    The Javascript tab allows you to add infinite JavaScript actions to your element. For each action you have the

    choice between manually entering some JavaScript code, or using the GUI to create simple interactions.

    Status - is the JavaScript action published

    Event  - The JavaScript event that will trigger the code either specified in the Code field or generated from

    the GUI options.

    You can then either run Javascript code that you provide or use predefined actions.

    Javascript Code(top)

    Javascript Code - The Javascript code to run when the specified action occurs. The variable 'this' refers to

    the instance of the element plug-in class that has been attached to the element - for example the check-

    box class is found in plugins/fabrik_element/checkbox/checkbox.js.

    Note:  Do not  use // style comments in this code, as it is inline code from which newlines are stripped, so

    everything after the first // will become commented out. Use /* this style commenting */ instead.

    If you put a comment on the first line of the code (as shown in the example), then this is included in the

    heading for this javascript element which is useful if you have a lot of separate javascript actions on an

    element.

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    14/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 17

    You can also test for Fabrik.debug (also shown above) to issue debug messages to the Javascript console

     when Debug JS is set in Fabrik options (which you might do during development of your Fabrik

    application).

    For radio elements  set to render as Bootstrap button groups change  events may not fire, instead use

    click  events.

    All of these classes inherit from the base element class which is located in /media/com_fabrik/js/element.js

    Predefined actions (top)

    If this element: This defined the comparison to be made between the value of this element and that in the

    Value field below.

    Value  - The value to be used for the comparison. A placeholder can be used here to set the value based

    on the value of another element when the form is first loaded .

    Action - The Javascript action to perform on the element selected below. The description of each option is

    self-explanatory.

    Element - the element or group to perform the action upon.

     will hide group one when the value of the element is 1

    The inverse event would be this:

    Javascript ex amples (top)

    Code example (top)

    Let's say we want to add the values in two elements together, element1 and element2 and put the results in an

    element called 'total'. This should be applied each time the user leaves either of the two fields. First of all we

     want to create a sum() function which c an be accessed by the two elements:

    Create a XX.js file in components/com_fabrik/js, where XX is your numeric form ID, and put your functions in

    there, then just call the functions from your element JS actions.

    Fabrik 3.0

    Fabrik 3.1

    Code (Text):

    hide group1 when this == 1

    Code (Text):

    show group1 when this != 1

    Code (Javascript):

    function  sum(){

    var  form =  Fabrik.blocks.form_1;var  total1 =  form.formElements.get('tablename___element1').get('value');var  total2 =  form.formElements.get('tablename___element2').get('value');return  total1.toInt() +  total2.toInt();

    }

    Code (Javascript):

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    15/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 18

    Now edit element1, select the javascript tab, and add a new event.

    Select 'blur' for the event type and then enter this in the code box

    Fabrik 3.0

    Fabrik 3.1

    Predefined Example (top)

    Suppose we have an 'car accident report' form, the first group 'details' contains the main information about the

    accident.

    Its last element is a radio button called 'add_location' and labelled 'Do you want to pin point the location of the

    accident'. It has two options 'yes' and 'no' (whose values are 1 and 0) this element default's to the 'no'.

    Our form's second group is called 'location' and has further fields to define the accident's location. We want to

    hide the group when the form loads (as 'add_location' defaults to 'no'), show it when 'add_location' is 'yes' and

    hide it when 'add_location' is 'no'

    So... enter the following events:

    action: loadslideout 'location' when this == 0

    action: clickslidein 'location; when this == 1

    action: clickslideout 'location' when this == 0

    Important Note on use of the Javascript 'this' (top)

    Be careful with the use of "this" in your javascript code, for some element events e.g fields this will refer to the

    DOM field, where as for checkbox, radio buttons etc it will refer to the Fabrik object that controls the

    element. In either case you can safely use

    function  sum(){var  form =  Fabrik.getBlock('form_1');var  total1 =  form.elements.get('tablename___element1').get('value');var  total2 =  form.elements.get('tablename___element2').get('value');

    return  total1.toInt() +  total2.toInt();

    }

    Code (Javascript):

    var  form =  Fabrik.blocks.form_1;

    form.formElements.get('tablename___total').update(sum());

     

    Code (Javascript):

    var  form =  Fabrik.getBlock('form_1');

    form.elements.get('tablename___total').update(sum());

     

    Code (Javascript):

    this.get('value')

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    16/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 19

    to get the element's value.

    Getting Element's values with JavaScript (top)

    To consistently get the value of an element the following code can be used:

    Fabrik 3.0:

    Replace the '1' in 'form_1' with your form's ID.

    Fabrik 3.1+:

    Replace the '1' in 'form_1' with your form's ID.

    Remember that for elements such as checkboxes, radio buttons and dropdowns will return the selected sub

    element's values and not their labels.

    Setting Element Values With JavaScript (top)

    To consistently set the value of an element the following code can be used:

    Fabrik 3.0:

    Replace the '1' in 'form_1' with your form's ID.

    Fabrik 3.1+:

    Replace the '1' in 'form_1' with your form's ID.

    Remember that for elements such as checkboxes, radio buttons and dropdowns 'newvalue' refers to the subelement's values and not their labels.

    For checkboxes and multiple select dropdown's you can assign multiple selections separated with '|-|', e.g.

    Limit the number of responses (top)

    Code (Javascript):

    Fabrik.blocks['form_1'].formElements.get('tablename___elementname').getValu

    Code (Javascript):

    Fabrik.getBlock('form_1').elements.get('tablename___elementname').getValue()

    Code (Javascript):

    Fabrik.blocks['form_1'].formElements.get('tablename___elementname').update('

    Code (Javascript):

    Fabrik.getBlock('form_1').elements.get('tablename___elementname').update('n

    Code (Javascript):

    Fabrik.getBlock('form_1').elements.get('tablename___elementname').update('newva

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPagehttp://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    17/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 20

    Suppose you have a checkbox element with 8 possible boxes to check but you want your users to only choose

    a maximum of 3 responses. To achieve that, you can paste the following code in the code field of the Javascript

    tab of your element :

    Replace:

    the 'Y' by the maximum number of responses authorised

    the 'Message' by the message you want to display via a javascript alert window.

    The "action" is "onClick".

    Here is an example in "real life" :

    [  IMG]

    The element 'enquete___question6' in the form #2 can accept a maximum of 3 responses. If more, the message

    'Vous ne pouvez choisir que 3 réponses' is displayed to the user and the fourth click is cancelled.

    Parent - Child Elements (top)

    When creating a new Fabrik list whose database table has already been used to create a previous Fabrik list, or

    copying an existing table, Fabrik applies a concept called parent/child elements.

    Fabrik will create the new table's elements with the same settings as those of the original Fabrik table's

    elements.

    These new elements are called child elements and are 'linked' to the original parent element.

    Upon editing and saving the parent element all of its child element's will be updated with the same settings.

    When you edit the child element, you will notice that the usual edit element form does not appear. Instead you

    see a notification about the element being linked, a link to edit the parent element, and a check box to unlink

    the child element:

    To disable the parent/child relationship click on the "unlink" check box. The usual edit element form will fade in

    Code (Javascript):

    if (this.numChecked() >  Y ) {

      alert('Message');

      event.stop();

    }

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    18/19

    1/28/2016 Elements | Fabrik

    http://fabrikar.com/forums/index.php?wiki/elements/ 21

    and when you save the element, it will no longer be linked to the parent element. Once unlinked the child

    element can not be linked back to its parent element.

    To edit the parent element, click on its name. In the example above that's "id"

    In the table view parent and child elements are indicated with a unlinked chain icon (the first icon in the image

    below) or a linked chain icon (the second icon in the image below). Clicking on the linked icon will allow you to

    edit the parent element.

    Element Access Control (top)

    [ TO BE CONFIRMED IF FABRIK 3 ACCURATE ]

    This table shows the various access setting and how they effect the element rendering when in the form view

    and details view:

    + element access

    view

    access

    read only

    visible

    editable

    details

    no

    yes

    yes

    no

    details

    yes

    yes

    yes

    no

    details

    no

    no

    no

    no

    details

    http://fabrikar.com/forums/index.php?wiki/elements/#wikiPage

  • 8/18/2019 Elements _ Fabrik

    19/19

    1/28/2016 Elements | Fabrik

    XenCarta PRO © Jason Axelrod from 8WAYRUN.COM

    (Like) (50175 View s)Last Modified: Nov 5, 2015 at 6:03 AM (Cached)

    yes

    no

    no

    no

    form

    no

    yes

    yes

    no

    form

    yes

    yes

    yes

    yes

    form

    no

    no

    no

    no

    form

    yes

    no

    yes

    yes

    alexforte83 likes this.

    Log in

    Useful Links

    Create a Fabrik Account

    Fabrik Wiki

    Fabrik on github

    Members Online Nowthellie, automill

    Total: 68 (members: 2, guests: 55, robots: 11)

    Elements

      Element cus tom-link examples

      Element default examples

      Element delete confirmation (+)

    El J i

    Wiki Navigation

    http://fabrikar.com/forums/index.php?wiki/element-javascript/http://fabrikar.com/forums/index.php?wiki/element-delete-confirmation/http://fabrikar.com/forums/index.php?wiki/element-default-examples/http://fabrikar.com/forums/index.php?wiki/element-custom-link-examples/http://fabrikar.com/forums/index.php?members/automill.50331/http://fabrikar.com/forums/index.php?members/thellie.50392/http://fabrikar.com/forums/index.php?online/https://github.com/Fabrik/fabrik/http://fabrikar.com/forums/index.php?wiki/index/http://fabrikar.com/subscribehttp://fabrikar.com/forums/index.php?login/http://fabrikar.com/forums/index.php?members/alexforte83.50156/http://fabrikar.com/forums/index.php?wiki/elements/likehttp://8wayrun.com/http://xenforo.com/community/resources/1690/