Solved

Changing Checkbox fields... losing pervious selection.

Posted on 2003-12-04
9
256 Views
Last Modified: 2013-12-18
I have a checkbox field that I need to modify the options; when I change the option the past selections on the option are cleared. How may I change the boxes options without losing the checkmarks already input?

Thanks.
0
Comment
Question by:DWR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 9877334
Can you use the old values as alias for new values? Or are the checkbox' options fed by a formula?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9877425
How are you changing the option.. it should be through some other field.. in that case append the current values to the options

eg:

Let us say you have checkbox field.. cbox and with formula options pointing to Options

When you change the Options field set it like
NewOptions : cbox

~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9878994
Thsi frequently happens on the web when you have multiple definitons for the checkbox on different subforms, or use pass-thru to simulate the checkbox field.

Is that teh situation you have?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:DWR
ID: 9906286
Sorry for the late response.

I was changing the options from the choices list in the property box of the checkbox field.

There is no formula used,. Basically it's just a list of choices of which a few need to be changed. I have my test copy and when I switch the name my saved documents lose their selection for that field.

Thanks

0
 
LVL 13

Expert Comment

by:CRAK
ID: 9907888
Try using the old values as (additional) alias:

Before the change:

Option1
Option2
Option3

After the change:

Option1
Changed option|Option2
Option3
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 200 total points
ID: 9909846
Oh, I get it now.

Let's say the field name is Xyzyz.
You are using "Enter choices (one per line)"
The old list of choices is: Red / Green / Blue
The new list of choices is: Cyan / Magenta / Yellow / Black

Here's what to do.

Change from "Enter choices" to "Use formula for choices"
Specify the following formula:
@Unique(@Trim(
"Cyan" :
"Magenta" :
"Yellow" :
"Black"
: Xyzyz))

This causes the normal set of choices to be CMYK, but, if there is an existing value, it should automatically be added to the list FOR THIS DOCUMENT ONLY.  And, if the user changes to a different value, the next time the document is opened, the "old" choice will go away.  This sounds like exactly what you want to do.

How the formula works:

"Cyan" :
"Magenta" :
"Yellow" :
"Black"

Teh above is equivalent to the Enter choices (one per line ) for the four values.

"Cyan" :
"Magenta" :
"Yellow" :
"Black"
: Xyzyz

By adding :Xyzyz, we are adding whatever the current value of Xyzyz is, as a valeu to the formula.

@Trim -- gets rid of any blank choices.  If there was no current Xyzyz value, this then, without @Trim, blank shows up as a choice.

@Unique -- let's say the user choose Yellow.  Then, the next time the user opens the doucmnet, the formula...
"Cyan" :
"Magenta" :
"Yellow" :
"Black"
: Xyzyz
...wil evaluate to...
Cyan
Magenta
Yellow
Black
Yellow
... with the first yellow part of the "fixed" formula, and the second coming from teh current Xyzyz value.  @Unique terims the duplicate off the end.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 9910633
That's another option... but you'll permanently lose the old values as option once you tick them off...
In my solution all old values "Option2" are immediately shown (on documents) as "Changed option". Depends on your preference what to do...
0
 

Author Comment

by:DWR
ID: 9912060
I think qwaletee is more after what I want to do; which is preseverve the old values on old documents and show new values on new documents. I'll try and check it out later today as my morning and early afternoon is packed.

Thanks guys!
0
 

Author Comment

by:DWR
ID: 9928358
Thanks qwaletee,

Worked perfectly. Preserving the old selections on the previous forms while showing the new options on the new forms.


Excellent!!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question