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

Groovy Expression to a Default Value

edited Oct 25, 2019 5:45PM in Self Service Procurement 4 comments

Content

Hi,

i trying to load a Default value for a flexfield using the Groovy Expression, but i don't know if i use the expression right or if have a documentation to how use this expressions. 

I'm try this: 

if (FlexParam?.CategoryId == 300000038787032 || FlexParam?.CategoryId == 300000038786978) {
  return "Use"
} else {
  return "Don't Use"
}

 

This is right? I can do that? I can too disable the input?

When i customize the inputs, i have some configurations to do. One this is construct some logical to the input, how i get the CategoryId of the line and make a logic to Hide or Show the field?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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