Question

INFORMATION_BUTTON

Hello all, trying to hide the Visibility of an Information_button. I have fololowed this post, but it is not working. https://community.creatio.com/questions/display-information-button-base…

 

{
 
//Diff                
"operation": "insert",
                "parentName": "ProfileContentContainer",
                "propertyName": "items",
                "name": "SimpleInfoButton2",
                "values": {
                    "layout": { "column": 1, "row": 5, "colSpan": 1, "rowSpan": 1 },
                    "itemType": Terrasoft.ViewItemType.INFORMATION_BUTTON,
                    "content": "My Message here"					
                }
            },
 
//Methods
onEntityInitialized: function(){
				this.callParent(arguments);	
              	this.checkCondition();
            },
 
				checkCondition: function(){
			if (this.get("Name")!=="whoCares"){
				document.getElementById("ClientContactProfileSchemaSimpleInfoButton2Button-imageEl").style.display = "none";
            } else {
			return;
            }
          },

 

 

Like 0

Like

0 comments
Show all comments