AAQ page shows error on submit even though data is passed correctly
When I submit my AAQ page, I get the following error message as response:
"Not Allowed: Cannot be set to Nil/NULL; Contact.Emails.Address"
I checked the form data parameters being sent to "ci/AjaxRequest/sendForm" endpoint and I found that email address was being passed as expected but not sure why it's coming out as empty on the server side even though the email address field on the form is using the standard "input/FormInput" widget with name attribute as "Contact.Emails.PRIMARY.Address" (screenshot attached)
Any idea what could be going wrong here?
For the record, there are a couple of custom widgets that extend from the standard input/TextInput field, but the email address is using the out-of-the-box widget. So I don't think the custom widgets (which are not overriding the controller and view) are the cause of the problem.