You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Service Centre: how to set default value for field?

Summary:

Service Centre: how to set default value for field on Edit Page?

Hi @Edson Junior, Oracle@Karyn Kurland-Oracle

I tried below approach but it did not work.

We want to set default value for RedwoodAmerEBSSearch_c as a true.We tried to set it from field level but it did not work.So, we have used UI event framework function for setting the field value as following. 

defaultFieldValue(response, recordContext)

{        // here you can add fields and values to be set as default.        const data = [          //['ServiceRequest.Title', 'Default Value'],          ['ServiceRequest.RedwoodAmerEBSSearch_c', 'true'],        ]; 

      // let the code set it for you        for (let i = 0; i < data.length; i++)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!