Skip to end of banner
Go to start of banner

Checkbox

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Description

This element is used to display a check box on the page.

Attributes

NameDescriptionValue
id

Unique Identifier

any
visiblemodesThe modes the button should be visible.A comma-separated list of the modes read / new / edit
visibilityconditionsThe conditions that should be met in order to display the component.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf is true then checkbox is in read mode, cannot change value.true,false
datapathThe data path field nameNeeds to correspond to the CRMDO object field.
datatypeThe type of datapath fieldjava.lang.Integer, java.lang.String,...
refreshThe page parts that should be refreshed when the button is clicked.

page

mainmenu

main

details

tab,tabID

component,is_on_tab:is_on_menu:tabID:componentID

element,is_on_tab:is_on_menu:tabid:componentID:elementID

section,sectionID

area,areaID

truevaluethe value to be assign on datapath when checkbox is checkedany
falsevaluethe value to be assign on datapath when checkbox is not checkedany
truelabelthe label of checked checkbox in read modeany
falselabelthe label of non checked checkbox in read modeany
defaultvaluethe default value to be assign on datapath.any
onchangeDefines the function call(s) triggered checkbox value changed.<functions>…</functions>

 

                      

Examples

CheckBox

 

Tab
<checkbox>
    <id>chkApplyRounding</id>
    <datapath>applyRounding</datapath>
    <truevalue>1</truevalue>
    <falsevalue>0</falsevalue>
    <truelabel>Yes</truelabel>
    <falselabel>No</falselabel>
    <refresh>page</refresh>
    <onchange>
        <functions>
            <function>
                <type>staticjs</type>
                <functionname>voidFunc</functionname>
            </function>
        </functions>
    </onchange>
</checkbox>           

 

 

  • No labels