You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you intend to enable JavaScript client-side code, the elements you base your JavaScript on must be immutable. If they're not immutable, any changes could cause unexpected behavior on your user pages. To prevent these issues, enforce the use of a page layout and specify a page layout version to ensure the content definitions you’ve based your JavaScript on are immutable. Even if you don’t intend to enable JavaScript, you can specify a page layout version for your pages.
55
55
@@ -69,9 +69,10 @@ For information about the different page layout versions, see the [Page layout v
69
69
70
70
::: zone pivot="b2c-custom-policy"
71
71
72
-
Select a [page layout](contentdefinitions.md#select-a-page-layout)for the user interface elements of your application.
72
+
To specify a page layout version for your custom policy pages:
73
73
74
-
Define a [page layout version](contentdefinitions.md#migrating-to-page-layout) with page `contract` version for *all* of the content definitions in your custom policy. The format of the value must contain the word `contract`: _urn:com:microsoft:aad:b2c:elements:**contract**:page-name:version_. Learn how to [Migrating to page layout](contentdefinitions.md#migrating-to-page-layout) with page version.
74
+
1. Select a [page layout](contentdefinitions.md#select-a-page-layout) for the user interface elements of your application.
75
+
1. Define a [page layout version](contentdefinitions.md#migrating-to-page-layout) with page `contract` version for *all* of the content definitions in your custom policy. The format of the value must contain the word `contract`: _urn:com:microsoft:aad:b2c:elements:**contract**:page-name:version_.
75
76
76
77
The following example shows the content definition identifiers and the corresponding **DataUri** with page contract:
77
78
@@ -142,9 +143,10 @@ You enable script execution by adding the **ScriptExecution** element to the [Re
142
143
143
144
Follow these guidelines when you customize the interface of your application using JavaScript:
144
145
145
-
- Don't bind a click event on `<a>` HTML elements.
146
-
- Don’t take a dependency on Azure AD B2C code or comments.
147
-
- Don't change the order or hierarchy of Azure AD B2C HTML elements. Use an Azure AD B2C policy to control the order of the UI elements.
146
+
- Don't
147
+
- bind a click event on `<a>` HTML elements.
148
+
- take a dependency on Azure AD B2C code or comments.
149
+
- change the order or hierarchy of Azure AD B2C HTML elements. Use an Azure AD B2C policy to control the order of the UI elements.
148
150
- You can call any RESTful service with these considerations:
149
151
- You may need to set your RESTful service CORS to allow client-side HTTP calls.
150
152
- Make sure your RESTful service is secure and uses only the HTTPS protocol.
@@ -237,4 +239,4 @@ In the code, replace `termsOfUseUrl` with the link to your terms of use agreemen
237
239
238
240
## Next steps
239
241
240
-
Find more information about how you can customize the user interface of your applications in[Customize the user interface of your application in Azure Active Directory B2C](customize-ui-with-html.md).
242
+
Find more information about how to[Customize the user interface of your application in Azure Active Directory B2C](customize-ui-with-html.md).
0 commit comments