I have 2 Record Types for Account: Persona Fisica and Persona Moral.
I have 2 Skuid pages AccountMoralEdit and AccountFisicaEdit, both are used for new and edit. I have the following Page Assignments:
Account / New / Org Default / Persona Fisica / AccountFisicaEdit
Account / New / Org Default / Persona Moral / AccountMoralEdit
Account / Edit / Org Default / Persona Fisica / AccountFisicaEdit
Account / Edit New / Org Default / Persona Moral / AccountMoralEdit
And the following VF Pages:
AccountNew
<apex:page action=“{!redirect}&objecttype=Account&actiontype=New” extensions=“skuid.Redirects” standardcontroller=“Account”></apex:page>
AccountEdit
<apex:page action=“{!redirect}&objecttype=Account&actiontype=Edit” extensions=“skuid.Redirects” standardcontroller=“Account”></apex:page>
And the Account Action Overrides:
Edit → VF Page: AccoundEdit
New → VF Page: AccountNew
The problem I have is the following: when I create a new Account of record type ‘Persona Moral’ the correct Skuid page is loaded but the new record is saved with ‘Persona Fisica’ record type. So my apex validations fail because of this. Any ideas?