Hello guys,
I've got a confusing problem here. There's this form with a mandatory field that has been set as Read-only field (greyed out). This field's got caught in the 'required' validation when I clicked the Save button, stating "You must provide a value for Total Acquisition Tax Amount". This shouldn't happen and I have tried making a fresh form with a new Mandatory field set to read-only, which didn't get caught in the validation.
As an additional note, I consider trying to remove and add the field again but I hope that I can avoid this and able to find another solution.
Any hint is appreciated.
Thank you.
EDIT#1:
I've got a new discovery about this bug. Since this form is in a business process flow, there are several steps where this form is the first step. If I fill out all the required field except the Total Acquisition Tax Amount which is read-only then click the save button, I'll get the "You must provide a value for Total Acquisition Tax Amount" message. However, when I go to the next step and go back to this form, the save button works just fine. And this actually confuses me more.
EDIT #2:
So the cause was because the read-only required field is included as a step in the BPF, but on the second stage. Somehow that prevents the read-only field to pass the CRM's Save button validation. I tried to create a fresh entity and successfully reproduced the "bug" without any javascript or plugin, so I can say it's from CRM side. The solution is either move the step to thefirst stage and make it read only through javascript, or change the field from Business Required to Business Recommended or Optional. After discussion with my team, it was decided to just remove the mandatory.
*This post is locked for comments