Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Changing Checkbox fields... losing pervious selection.

Posted on 2003-12-04
9
Medium Priority
?
268 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 800 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

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

610 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