Solved

Changing Checkbox fields... losing pervious selection.

Posted on 2003-12-04
9
238 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
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 13

Expert Comment

by:CRAK
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:DWR
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 13

Expert Comment

by:CRAK
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now