File tree Expand file tree Collapse file tree 1 file changed +28
-18
lines changed
powerapps-docs/developer/model-driven-apps Expand file tree Collapse file tree 1 file changed +28
-18
lines changed Original file line number Diff line number Diff line change @@ -120,27 +120,37 @@ Create a custom button on the form where you want to change the default behavior
120
120
1 . Open the customization.xml file, copy the code below, replace the code inside the ` RibbonDiffXml ` :
121
121
122
122
``` XML
123
- <RibbonDiffXml >
124
- <CustomActions >
125
- <CustomAction Id =" cr5c1.Mscrm.OpenRecordItem.CustomAction" Location =" Mscrm.SubGrid.contact.MainTab.Management.Controls._children" Sequence =" 28" >
126
- <CommandUIDefinition >
127
- <Button Alt =" $LocLabels:Mscrm.OpenRecordItem.Alt" Command =" Mscrm.OpenRecordItem" Id =" Mscrm.OpenRecordItem" LabelText =" $LocLabels:Mscrm.OpenRecordItem.LabelText" Sequence =" 28" TemplateAlias =" o1" ToolTipTitle =" $LocLabels:Mscrm.OpenRecordItem.ToolTipTitle" ToolTipDescription =" $LocLabels:Mscrm.OpenRecordItem.ToolTipDescription" />
128
- </CommandUIDefinition >
129
- </CustomAction >
130
- </CustomActions >
123
+ <RibbonDiffXml >
124
+ <CustomActions >
125
+ <CustomAction Id =" cr5c1.Mscrm.OpenRecordItem.CustomAction"
126
+ Location =" Mscrm.SubGrid.contact.MainTab.Management.Controls._children"
127
+ Sequence =" 28" >
128
+ <CommandUIDefinition >
129
+ <Button Alt =" $LocLabels:Mscrm.OpenRecordItem.Alt"
130
+ Command =" Mscrm.OpenRecordItem"
131
+ Id =" Mscrm.OpenRecordItem"
132
+ LabelText =" $LocLabels:Mscrm.OpenRecordItem.LabelText"
133
+ Sequence =" 28"
134
+ TemplateAlias =" o1"
135
+ ToolTipTitle =" $LocLabels:Mscrm.OpenRecordItem.ToolTipTitle"
136
+ ToolTipDescription =" $LocLabels:Mscrm.OpenRecordItem.ToolTipDescription" />
137
+ </CommandUIDefinition >
138
+ </CustomAction >
139
+ </CustomActions >
131
140
<Templates >
132
- <RibbonTemplates Id =" Mscrm.Templates" />
133
- </Templates >
134
- <CommandDefinitions >
141
+ <RibbonTemplates Id =" Mscrm.Templates" />
142
+ </Templates >
143
+ <CommandDefinitions >
135
144
<CommandDefinition Id =" Mscrm.OpenRecordItem" >
136
- <EnableRules />
137
- <DisplayRules />
138
- <Actions >
139
- <JavaScriptFunction FunctionName =" ChangeBehavior" Library =" $webresource:cr5c1_samplescript" />
140
- </Actions >
141
- </CommandDefinition >
145
+ <EnableRules />
146
+ <DisplayRules />
147
+ <Actions >
148
+ <JavaScriptFunction FunctionName =" ChangeBehavior"
149
+ Library =" $webresource:cr5c1_samplescript" />
150
+ </Actions >
151
+ </CommandDefinition >
142
152
</CommandDefinitions >
143
- </RibbonDiffXml >
153
+ </RibbonDiffXml >
144
154
```
145
155
146
156
> [!NOTE]
You can’t perform that action at this time.
0 commit comments