Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Default values through script


This topic is 7976 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Not sure exactly what you mean here. Maybe you can clarify what this script does and why it is relevent that the value list is from another file.

I'd assume you'd have some tests and if they do not pass the tests then the default action would be "Set Field popupFieldName = the value you want"

As long as the default value is always the same, it doesn't really matter that it is in a value list. Maybe that helps?

Link to comment
Share on other sites

I think I need to go back to basics... If I have a popup menu with a list of choices from a value list. Is there a way to select which value is default or more precisely, which value shows up on screen and is used for calculation if no choice is selected?

Link to comment
Share on other sites

"I think I need to go back to basics... If I have a popup menu with a list of choices from a value list. Is there a way to select which value is default..."

No, other than entering the default value into the field.

Remember, the pop-up list is just a mechanism for presenting a list of possible values. There is no way to coerce any one value over another in a value list.

"... or more precisely, which value shows up on screen and is used for calculation if no choice is selected?"

This is actually a different question! This is usually achieved by using two fields, one that the user enters into, the other is a calc field that goes something like "If(IsEmpty(UserEntryField), DefaultValue, UserEntryField)".

Link to comment
Share on other sites

This topic is 7976 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.