Error in submitting the signup form after unselecting the checkbox

Saravana Palanisamy 0 Reputation points
2026-01-17T04:15:21.14+00:00

I have an optional checkbox in my signup form.

Initially, I pre-selected this checkbox by passing true to the extension attribute during the OnAttributeCollectionStart event. With this setup, the checkbox appears selected by default.

However, when the user unchecks the checkbox and submits the form, a JavaScript error appears in the browser console.

I also tried removing the attribute assignment from the OnAttributeCollectionStart event. In this case:

The checkbox is not selected by default

Submitting the form without interacting with the checkbox works fine

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.