Need multiple checkboxes to autofill their values into a separate textbox as they are checked

Hi,
I have a form that requires the user to check a box regarding what articles they want mailed out to a participant depending on which client they are affiliated with and the language they speak. I am using 1 form for 7 clients. There is a separate page for each client in english and spanish, so the entire form has 16 pages with 2,988 checkboxes in the entire document (a little over 200 in each page besides the first and last page). The last page contains a textbox labled Summary, and it should provide a summary of all the items checked in the document. The first page contains a dropdown menu of each client and a radio button set with the language selection. Theoretically only one page will be populated at a time, so there will be no more than 200 checkboxes checked in the entire document.
As the articles are checked I want the checkbox name to automatically populate into the summary textbox on the last page. The code I'm using is below, but I can't get it to work.
I don't get a script error, but there is nothing populating in the summary textbox.
Can someone tell me what I'm doing wrong?
The JS I am trying to get to work is the following:
form1.SummaryPage.SummaryText::calculate - (JavaScript, client)
// Custom Calculate script
(function () {
var i, v, s = "";
// Loop through the 2988 check boxes
for (i = 1; i < 2989; i += 1) {
// Get the value of the current checkbox
v = getField("checkbox " + i).valueAsString;
// Concatenate check box value to string if not deselected
if (v !== "Off") s+= v + "\r";
// Set this field value
event.value = s;

Hi,
This looks like code from an AcroForm.  A Designer form does not have a getField method, try something like;
xfa.resolveNode("checkbox"+1).rawValue
And at the end use;
this.rawValue = s;
Code in a calculate event does not seem to report any errors, try testing it in a click event
Regards
Bruce

Similar Messages

  • Checkboxes that keep their value after a refresh

    Hi
    I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
    My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
    I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
    Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.
    I am using Apex 4.1.1.00.23
    Thanks
    Dan

    user5476823 wrote:
    HiWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already)), and update your forum profile with a real handle instead of "user5476823".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
    My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
    I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
    Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.Don't set the checkbox value to "N". Leave the default as null, and check that the value is "Y" or null as necessary.
    APEX checkboxes probably don't work in the way you expect: a checkbox is displayed for each value in the LOV. With the checkbox item LOV Display Extra Values property set to Yes, extra values that are not included in the LOV definition&mdash;like your "N" default&mdash;will be displayed as additional checkboxes.
    See +{message:id=10738376}+ for a similar situation.

  • I want to spit cell the value into two separate columns like f_name & l_nam

    Hi Guys,
    I have excel data in one cell with ',' separated data.
    sample data:
    empno ename
    121 ravi,kann
    232 ram,raman
    here ename value in one provided in one cell.
    Now i want to spit cell the value into two separate columns like first_name and last_name?
    Thanks in advance
    -LK

    with sample_data as
      select 121 empno, 'ravi,kann' ename from dual union all
      select 232 empno, 'ram,raman' from dual
    select empno,
           substr(ename,1,instr(ename,',')-1) first_name,
           substr(ename,instr(ename,',')+1) last_name
    from sample_data;       or with regular expressions:
    with sample_data as
      select 121 empno, 'ravi,kann' ename from dual union all
      select 232 empno, 'ram,raman' from dual
    select empno,
           regexp_substr(ename,'^[^,]*') first_name,
           regexp_substr(ename,'[^,]*$') last_name
    from sample_data; Edited by: hm on 04.07.2012 06:22

  • I had all photos on a Windows desktop.  Got a mac laptop, installed LR5, and put all images from Windows onto an external hard drive.  When I go to import them into LR on the Mac, they are all locked.  Help, please.  Thanks

    I had all photos on a Windows desktop.  Got a mac laptop, installed LR5, and put all images from Windows onto an external hard drive.  When I go to import them into LR on the mac, they are all locked.  Help, please!

    "I plugged the external into the Mac and moved a folder of images onto the desktop.  It looks like it went from read only to not locked.  Is this possible?"
    Yes, that's exactly what happened. If you buy another drive, you could copy from your existing drive to the new and your files will be read/write. The new drive will have to be formatted as an HFS drive (that's the Mac's format). If you need to format it, you use Disk Utility which is in the Utilities folder on your Mac. Be careful with that -- it wipes out whatever is currently on the drive. Make sure you format the right drive.
    I keep all my images on an external drive, too. In fact, I have two matching drives and sync them so I always have a backup.

  • On a iphone4, under settings, messages, send and receive, there are multiple phone numbers listed.  How do I remove them? they are constantly checked even when i uncheck them.  this is causing copies of my text messages to go to those phones.

    on a iphone4, under settings, messages, send and receive, there are multiple phone numbers listed.  How do I remove them? they are constantly checked even when i uncheck them.  this is causing copies of my text messages to go to those phones.

    Are you using the same AppleID for all those phones? If so, get them all their own AppleID.
    KOT

  • HT2518 How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    Hi, did you try iTunes>File>Import?

  • HT201317 When I view photos on my devices some are not oriented correctly. I used Picassa to turn all photos upright and then copied those photos into the upload file but they are still not corrected when viewed on my devices (ipads)

    When I view photos on my devices some are not oriented correctly. I used Picassa to turn all photos upright and then copied those photos into the upload file but they are still not corrected when viewed on my devices (ipads)

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • This am I turned on my 4s and went to play some music and it was all gone, plugged into itunes and synced, now they are back, but other than 1 audio book they wont play

    this am I turned on my 4s and went to play some music and it was all gone, plugged into itunes and synced, now they are back, but other than 1 audio book they wont play

    they show up in my music, but they are like grayed out and when u click on them nothing happens, i can go to itunes on my mac and click on them and they play. should I install 6.0 or wait till i have this resolved

  • Video is normal until I drag the clips down into Sequence 01, and then they are severely cropped.

    Video is normal until I drag the clips down into Sequence 01, and then they are severely cropped on all sides. What setting do I have wrong?

    Hi Brenda44,
    Please right click on the clip in the project panel and select new sequence from clip option to create a sequence according to your clips.
    Regards,
    Vinay

  • Combining Multiple occurrencesof the same field value into one and Sum prob

    Hi
    I am trying to combine the multiple occurrences of the field values and sum the amount to the target
    Source
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>15</Amount1>
    <Amount2>15</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    </Record>
    Target
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>25</Amount1>
    <Amount2>25</Amount2>
    </Item>
    </Record>
    I am using MM at present. All fields are KeyFields here. Should check against each other.
    I followed Context setting to the Root Item and Sort, SplitByValue and CollapseContext to achieve the functionality.
    But it checks against each field and not all fields. So either one field has different value, only that perticular field gets into New Node and not the entire record. In this case, i might need UDF i guess. Any UDF help is much appreciated
    Bad Target example of what i am getting
    Source
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>15</Amount1>
    <Amount2>15</Amount2>
    </Item>
    <Item>
    <Item1>2</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    </Record>
    Target
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>25</Amount1>
    <Amount2>25</Amount2>
    </Item>
    <Item>
    <Item1>2</Item1>
    </Item>
    </Record>
    In the above scneario, only Item1 returns the value into different node. But i like to have entire node values into the record, if one value changes in the entire record.
    Appreciate your help with the UDF in advance
    </Record>

    I think you are looking for string aggregation.
    The following are the replies posted by me in the forum recently on the same case.
    they might help you.
    Re: Concatenating multiple rows in a table - Very urgent - pls help
    Re: Doubt in a query ( Urgent )
    Re: How to remove words which consist of max 2 letters?
    Re: output like Name1,Name2,Name3...

  • I have downloaded itunes songs into my library and now I want to import them into my DVD program, but they are MP4 files and I need them to be wma. files,  can I and how do I change them?

    I have downloaded itunes songs into my library and now I want to import them into my Adobe Premiere Elements DVD program.  When I did it before, they were already .wma files, now they are MP4 files and they won't go.  How do I change these MP4 files into .wma files?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • No value mapping in Integration Directory, but they are in the cache

    Hi,
    I recently got acquainted with the fabulous world of value mappings in PI. Until now, FixValues did the trick for me, but now I have to modify the errors in someone else's work.
    I read this article:
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5&overridelayout=true
    and a bunch of other help.sap.com stuff and I still don't get a very specific thing in our system. When I check the cache from the runtime workbench, the values, agencies and what have you are all ok. However, when I go to Integration Directory, disregarding the fact that I don't have any values on the search helps for Agency and Scheme, which is quite weird, when I put the correct Agencies and Schemes, I don't get any value displayed, just blanks.
    Why does this happen? Is it something wrong in the PI configuration or something that I don't see any value mapping there, altough they are in the cache?
    Thanks in advance and best regards,
    George

    Hi ,
    1. Create Value Mapping directly in ID (this cannot be seen in RWB, it can be only seen in ID)  
        *Just a corection we can see the value mappings created in Integration directory in RWB in cache monitoring.*
    Just follow these steps to refresh your cache. you will no longer be able to see deleted Val mappings and newly created entries will also shown immediately.
    1) Go to integration builder -- > Administration  --> click on Runtime tab --> cache overview
    You will find 2 things over there :
    Value Mapping Group Cache
    Value Mapping Value Cache
    Refresh both of them. I hope it will work as it always work for me :).
    Thanks
    Inder

  • I need to contact someone from adobe to change my mx records as they are causing a problem

    I need to contact someone at adobe in order to change my MX records.
    I used www.godaddy.com in order to buy my domain and I also use there email package.
    When I tried the recommended way by adobe to host my site it worked but it caused me not to receive emails.
    I had contacted godaddy who where very helpful and they have told me that I needed contact adobe and get them to change my mx records as they change automatically when I try to upload my site.
    I have tried calling adobe but it is impossible to get anybody on the phone.
    Any recommendations for me to be able to contact someone in order to change the mx records????

    Hi there,
    You have full control over your settings of your site under settings - domain manager.
    BUT godaddy have been giving you incorrect information.
    Sounds like you just changed the NS records to BC, which will have killed your Godaddy emails. You need to change that back or get Godaddy to change it back and just change the A-record to the one BC wants for the Data Centre your site is at.
    This will just point the "Web Traffic" and not the emails to BC.
    Adding a domain name to your site and taking site live

  • Our household has two IPhones, two IPod Touches, 1 IPad and 1 computer. we want to have it all under the same Apple ID for the purpose of Home Sharing, but my two kids iPODs cannot use their facetime or messaging becuase it shows they are on my iphone.

    HELP! We have several Apple devices in our household (2 iPHOnes, 2 IPOD touch, 1 iPAD), and cannot get them to work correctly becuase my two children have to be under my creditcard and apple account. When I do this they cannot send me messages or facetime me, and when then try to do so with their friends it says my name and IPhone. Also, my husband and I want two seperate credit cards for iTUNEs but want to take advantage of the home share, but the one computer we have will not let us share. and had to have 2 apple ids created. WHy is this so confusing? Cant I reset everything under my Apple ID, and allow everyone to have their own email accounts and identity? ON top of all this, I have two AppleIDs, because my original one was a yahoo account and they changed over to me.com, now icloud.com/ HELP

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • I've reset my iPhone 4S, my photos are gone but when I plug it into iTunes it still says they are there, can I get them back?

    I reset my iPhone 4S and my photos have now gone, the albums are still there but no photos even though when I look at my storage and plug it into iTunes it still says that majority of my memory is to the amount of photos I have. Can anyone tell me how I can get my photos back?

    last thing you can try would be go to settings, general, settings, reset all settings
    if that does not work, a factory restore will be needed...

Maybe you are looking for

  • Hi, does someone know if I can use two Apple tv's with the same iTunes library? Thanks

    Hi, does someone know if I can use two Apple tv's with the same iTunes library? Thanks

  • Cumulative acquisition value-AS91(Asset accounting)

    Dear all, When i try to upload asset through as9, in the takeover values, the cumulative acquisition value is in grey colour. Because of this i am unable to enter the amount there. Earlier i was able to enter the amount there. What would be the probl

  • Process order operation information

    Dear Experts, I want to know the name of table from where I can get information of process order no., process order status and the operations which are still to be confirmed for the order. I think I will have to create a view by using two tables but

  • How to Convert Document to Form Result object.

    We have orchestration in which we are generating PDF using render PDF Form and then to enable signature field we are using ReaderExtension:applyUsageRights which returns BLOB/Document type. Now We want to convert BLOB/Document type to FormResult Obje

  • Weird iTunes problem!! HELP

    Hi, I've bought this brand new computer with Windows Vista Ultimate 64bit and everytime I open iTunes I get the message that iTunes is not propperly installed. I had this a couple of versions before and everytime a new version was released I download