January 10, 200917 yr Newbies 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.
January 10, 200917 yr 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.
January 10, 200917 yr 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,
January 11, 200917 yr since your list is based on a Table Occurence, you may also use the List(TO::fieldID) to populate your field. They are not necessarily the same. UnrelatedVL2.fp7.zip
January 11, 200917 yr Author Newbies Thanks LaRetta, I can't believe I didn't figure that out. They say the mind is the first to go! Hmmmmmm. Thanks Again!
Create an account or sign in to comment