Changing Record Type Is Clearing Some Fields

edited June 25, 2020 in Questions
Hey all (happy thanksgiving to my American friends), 

I am having a strange issue when I change record type on a page. The field editor is tied to the Task Object. 

I have included the RecordTypeId field so I have an editable field on the page. However when I change the record type by editing it inline on the view page, the Status and Priority fields are wiped clean. 

These are fields that are accessible in both record types and the picklist values aren't restricted by record type so baffled as to why a record type change would clear them. 

image

Comments

  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    Those are picklists. Each record type has values assigned for each picklist. Make sure the values are part of the other record types. Otherwise, they will be removed.

    image

    image
  • edited December 19, 2014
    Thanks Pat. 

    Yes I have confirmed that all the picklist values are available in both record types. 
  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    You have access to those record types in your profile?


  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    Do you have a workflow or apex changing those values?

  • edited December 19, 2014
    Good question! Thought that could be it but yes the profile has access to both original and target record type. 
  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    Javascript on your page?
  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    I just reproduced it.
    <skuidpage unsavedchangeswarning="yes" showsidebar="true" showheader="true" tabtooverride="Task">     <models>        <model id="Task" limit="0" query="true" createrowifnonefound="true" sobject="Task" doclone="" type="">           <fields>              <field id="Subject"/>              <field id="CreatedDate"/>              <field id="Status"/>              <field id="Priority"/>              <field id="RecordTypeId"/>              <field id="RecordType.Name"/>              <field id="Type"/>           </fields>           <conditions/>           <actions/>        </model>     </models>     <components>        <pagetitle model="Task">           <maintitle>              <template>{{Subject}}</template>           </maintitle>           <subtitle>              <template>{{Model.label}}</template>           </subtitle>           <actions>              <action type="savecancel" window="self"/>              <action type="multi" label="Reset" window="self">                 <actions>                    <action type="requeryModel" model="Task" behavior="standard"/>                 </actions>              </action>           </actions>        </pagetitle>        <basicfieldeditor showsavecancel="false" showheader="true" model="Task" mode="edit" buttonposition="" layout="">           <columns>              <column width="50%">                 <sections>                    <section title="Basics" collapsible="no">                       <fields>                          <field id="Subject"/>                          <field id="Status" valuehalign="" type=""/>                          <field id="Priority" valuehalign="" type=""/>                       </fields>                    </section>                 </sections>              </column>              <column width="50%">                 <sections>                    <section title="System Info" collapsible="no">                       <fields>                          <field id="CreatedDate"/>                          <field id="RecordTypeId"/>                          <field id="Type"/>                       </fields>                    </section>                 </sections>              </column>           </columns>        </basicfieldeditor>     </components>     <resources>        <labels/>        <css/>        <javascript/>     </resources>  </skuidpage>
     


  • edited December 19, 2014
    Hmm, I do have some apex on tasks but nothing that is affecting status and priority, nor are there any custom snippets on my page. 

    You did also trigger me to check workflows, as I do have a few updating tasks, but again nothing touching those fields. 

    Looked at another way, when I view the task using the normal salesforce layouts, I can change the record type without problem. 

    Does suggest there is something local to my Skuid page that is causing the issue? 
  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    Looks like a bug to me.
  • edited December 19, 2014
    Thanks for all your help Pat. Does your reproduction of the issue indicate that there is a Skuid issue at play here, do you think? 
  • edited December 19, 2014
    OK thanks :) I will await Skuid support then I guess, unless I should report this through different channels (I am new here). 

    Thanks again. 
  • Pat VachonPat Vachon 💎💎💎
    edited June 25, 2020
    Strong indicator for sure.
  • Rob HatchRob Hatch 💎💎💎
    edited September 1, 2016
    Thanks for the interaction here Pat and Justin.  The Skuid team has a policy not to investigate bugs when eating thanksgiving dinner.  But we'll take a look at this as soon as we can.  Record types are tricky things. 
  • edited December 19, 2014
    Thanks Rob. I guess I can wait until after dinner ;) 

    Happy thanksgiving!
  • Rob HatchRob Hatch 💎💎💎
    edited June 25, 2020
    Justin,  Might you be willing to grant Login Rights to Skuid. We'd like to take a look at this issue.  Here is how you do that. 

    Then send an email to "[email protected]"  with your Org ID and the name of this page. 

    We'll take a look at what is going on. 
  • Pat VachonPat Vachon 💎💎💎
    edited January 5, 2016
    I was able to reproduce it. One of my posts above.
  • edited December 19, 2014
    Thanks Rob I have done so. And thanks Pat for your help. 
  • Pat VachonPat Vachon 💎💎💎
    edited January 5, 2016
    yw
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited March 2, 2017
    This will be fixed in the next patch of Skuid, 5.21.6, due out at the end of the week. This patch will be pushed to all orgs that are on the 5.21.x branch --- if you are not on this branch, go to the Skuid Releases and install the "Dreamforce 14" release.
  • edited December 19, 2014
    Great news; thanks Zach. 
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited March 2, 2017
    This was fixed in today's patch release 5.21.6 of Skuid, which is now available on the Skuid releases page and will be pushed to all orgs on 5.21.x during this weekend.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!