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

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

Recommended Posts

  • Newbies
Posted

Just wondering if anyone can help me with this?

I have a conditional checkbox value list as a portal record, it can contain 10 items or 100 items depending on supporting fields. All the items have a differant value. Since there are so many, is there a way, through a script I can have all the items check when making a new record? I have been playing around but cannot come up with a script which will select all the items.

Posted

I'm a bit unsure of what you are doing or why. But to have all checkbox items check, use something like:

Set Field [ yourCheckBoxField ; ValueListItems ( Get ( FileName ) ; "YourValueListName" ) ]

This will check all items that exist in the value list because all items will appear in the text multiline.

Posted

The above advise is solid; however, since your list is based on a Table Occurence, you may also use the List(TO::fieldID) to populate your field.

I don't see a huge advantage unless you are using the 'show only second value' option in your value list-- in that case my approach would permit you to show the name, but still set the underlying ID field.

Thanks,

This topic is 5796 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.