How to Show/Hide the custom button in a page (PageV2/SectionV2)
Show a button if the selected entry has certain conditions ("Test.Lookup == Test 1")
Example
Card: Lead
Lookup: Stage Lead
value: one of the stages
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "NewButton",
"values": {
"itemType": 5,
"style": "red",
"caption": {"bindTo": "Resources.Strings.NewButtonCaption"},
"click": {"bindTo": "onProcess1"},
"enabled": true,
"visible": true,
/**How to Show/Hide the custom button
"classes": {
"textClass": [
"actions-button-margin-right"
]
}
},
"parentName": "ActionButtonsContainer",
"propertyName": "items",
Like
Hello,
To do this, you'll do the following:
- Add a boolean attribute
- Bind the boolean attribute to the visible property of the button
- Set the attribute to true/false to show/hide the button as necessary
You can see an example of this here: https://customerfx.com/article/how-to-enable-or-disable-a-field-on-a-pa…
Ryan