Fix Custom Login Page Errors in Microsoft Attack Simulation Training
Question details
The user is unable to proceed past the login page configuration step because the Next button fails when using a custom HTML login page for a simulation campaign.

- Product
- Microsoft Attack Simulation Training
- Device & OS
- not provided
- Scenario
- Creating a custom login page for a phishing simulation campaign in Microsoft 365 Defender.
- Observed behavior
- An error occurs preventing the 'Next' button from working during the setup of a custom login page, while Microsoft-curated templates function correctly.
Ensure you have the necessary Security Administrator permissions in the Microsoft 365 Defender portal to configure payloads and manage Attack Simulation Training campaigns.
Test with Curated Login Pages and Inspect Custom Code
Determine if the error is widespread or isolated to your custom code by testing default Microsoft templates, then fix the HTML markup.
Often, configuration errors on the 'Next' button stem from missing required variables or incorrectly formatted HTML within the custom payload code. Isolating the issue using curated pages confirms the platform is working correctly.
In your payload configuration menu, temporarily switch your login page selection to a Microsoft-curated page such as the Microsoft, LinkedIn, GitHub, or a non-branded template.
Click the 'Next' button to see if the configuration proceeds without errors. If it works, the issue is strictly isolated to your custom page.
Open your custom HTML code in a text editor. Ensure that all required fields and the mandatory compromise button are correctly formatted and included in the markup.
Compare your code against the official Microsoft TechCommunity guide for customizing login pages in Attack Simulation Training to ensure no required tags were omitted.

Looking for a Lightweight and Free Office Suite?
While Microsoft 365 provides complex enterprise security tools, you might just need a powerful, reliable suite for creating everyday documents, spreadsheets, and presentations. WPS Office is an excellent, cost-effective choice that provides a seamless offline and online experience without heavy enterprise overhead.

Frequently Asked Questions
Why does the Next button fail only on my custom login page?
This usually happens if the custom HTML code is missing required interactive elements, such as the designated compromise button or specific input fields required by the Attack Simulation Training configuration validator.
What are Microsoft-curated login pages?
These are pre-built, tested login page templates provided by Microsoft (e.g., Microsoft, LinkedIn, GitHub, or non-branded pages) that are guaranteed to work perfectly within the simulation training environment.
Do I need special permissions to customize simulation login pages?
Yes, you typically need to be assigned the Attack Simulation Administrator or Security Administrator role in the Microsoft 365 Defender portal to create and modify payloads and login pages.
How do I ensure my custom login page meets all Microsoft requirements?
You must carefully follow the official Microsoft documentation for customizing login pages in Attack Simulation Training, ensuring all required variables, tags, and form actions are correctly mapped in your HTML source code.




