Changing default picklist value to '-- None --'

  • 1
  • Question
  • Updated 3 years ago
I am trying to make a required field default to "--None--" on a Skuid page. It looks correct on the preview page, but when I proxy in as a user, the field defaults to the first picklist value. I confirmed that the default field/picklist value for the Record Type in Salesforce is "--None--", that the "--None--" checkbox is checked for the Skuid pages, and that I made & saved a change on the Skuid page. What am I missing?
Photo of Vaheed Fowlkes

Vaheed Fowlkes

  • 80 Points 75 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
A few questions: 
- Does the user's profile have update rights to this field?  (field level security)
- What does your VF page code look like that is processing the override? 

This should totally work... 
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Unlikely I'm sure, but just in case, do you have Page Assignments setup, such that the other user might be seeing a different page than the one you're editing?

Does this Picklist field have any Controlling fields?
Photo of Vaheed Fowlkes

Vaheed Fowlkes

  • 80 Points 75 badge 2x thumb

@Rob - yes the user's profile does have update rights to the field.  I am looking into the VF page code to see if I can find anything.  At present, I do not see anything that would override the default value.

@Zach - Yes, we do have Page Assignments setup, but I ran a test to account for that (I removed the field and logged in as the user to confirm that the field no longer appeared on the page). There are no Controlling fields for this particular field.



Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Vahneed, does the user who you are proxying in as have API Access enabled? They will need that in order for Skuid to retrieve the Record Type picklist dependency metadata from Salesforce properly, this might explain why it fails for one user but not for you.