Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
admin-guide:configuration:custom-attributes [2018/02/19 07:56]
admin_wiki [Conditional rule]
admin-guide:configuration:custom-attributes [2018/05/29 02:32] (current)
admin_wiki [Custom Attributes types]
Line 97: Line 97:
 | Integer | {{:​admin-guide:​configuration:​custom_attribute_integer.png?​nolink&​300|}} | constraint.required:​ true to set the field as mandatory\\ default.value:​ the default value\\ constraint.max:​ a number setting the max value for the field\\ constraint.min:​ a number setting the min value for the field | constraint.required=true \\ default.value=0 \\ constraint.max=100 \\ constraint.min=0 | | Integer | {{:​admin-guide:​configuration:​custom_attribute_integer.png?​nolink&​300|}} | constraint.required:​ true to set the field as mandatory\\ default.value:​ the default value\\ constraint.max:​ a number setting the max value for the field\\ constraint.min:​ a number setting the min value for the field | constraint.required=true \\ default.value=0 \\ constraint.max=100 \\ constraint.min=0 |
 | URL | {{:​admin-guide:​configuration:​custom_attribute_url.png?​nolink&​300|}} | default.value:​ the default value\\ constraint.required:​ true to set the field as mandatory\\ constraint.new_window:​ to open the URL in a new window | default.value=https://​www.bizdock.io \\ constraint.required=true \\ constraint.new_window=false | | URL | {{:​admin-guide:​configuration:​custom_attribute_url.png?​nolink&​300|}} | default.value:​ the default value\\ constraint.required:​ true to set the field as mandatory\\ constraint.new_window:​ to open the URL in a new window | default.value=https://​www.bizdock.io \\ constraint.required=true \\ constraint.new_window=false |
 +| Script | {{:​admin-guide:​configuration:​custom_attribute_script.jpg?​nolink&​300|}} | script: a javascript scriptlet that will be executed for computing the read only value | script=function getValue(objectType,​ objectId) { return "Hello World!";​ } |
  
 <WRAP center important 100%> <WRAP center important 100%>
 Once set, the type of Custom Attribute can not be changed. Once set, the type of Custom Attribute can not be changed.
 </​WRAP>​ </​WRAP>​