Skip to main content

The salesforce default date that I have set is not displaying in the “Date Received” field when a user is creating a new record.


Are you sure the new record is querying a model?


Brayden -

Can you send a screenshot of your model and conditions you have defined for this component?

There’s two main ways to set a default field value:

1.) In your model condition, set a condition such that:


Date_Received__c = TODAY<br />

Remember to uncheck “Load Model Data on Page Load” and check “Create Default Row if Model Has None” in this scenario.

2.) Using the action framework to launch your Search component, use an “Update a field on row(s)” as one of the actions.  Likewise, remember to uncheck “Load Model Data on Page Load” and you can use the action framework to create a new row when launching this component.

Hope this helps!
Christine


Skuid doesn’t pull through the default Salesforce value? I have the value set in the custom field settings on the custom object.


Brayden,

Two things to check:  
1. Is this a brand new record?
If it’s an existing record in the database, default values will not apply.

2. I may be wrong here, but I believe Skuid doesn’t get the default value from SFDC until after save. You could do the following to test the theory: Create a new record in the skuid ui; leaving the field for which you have a default value blank, save it; query the skuid model and see if the default value has been applied.


Yes Matt is correct - Skuid applies the SF default values only after the save.  If you want the default value to show up in the UI when creating a new row, you’ll have to preset the value either via a condition or action framework field update. 


Reply