Why are my radio buttons not renaming in pages spawned from a hidden template?

Hi Everyone,
I am new to PDF forms, and have never before tried to use JavaScripts. However, I have been able to learn a lot and I have followed many threads and have almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to locate my problem. Your help is greatly appreciated.
SYSTEM SPECS: Adobe Acrobat X Pro  Mac OS 10.8.5
WHAT I WANT: To create a multi-page (100 pages) form for grading student assignments. Each page must have the same fields, but as each page belongs to a new student, it needs to have different values in the fields on different pages. Each page has 4 questions to score, with 4 score possibilities for each question (0, 1, 2, 3 points), and so only one score should be able to be selected per question.
WHAT I HAVE DONE, following the directions on this thread (Re: Multiple pages form) ):
1) Created a form with a field for student name and 4 sets of radio buttons (Labeled Questions 1-4, with score choices 0-3).
2) Placed a button at the bottom of the page that will spawn a new page and rename fields.
3) Defined this page as a template.
4) Spawned a page.
5) Made the template "hidden."
THE PROBLEM: Steps 1-4 above work perfectly--as long as the template (named "Form") is visible, when I click the button, a new page generates and the student name field renames the fields on Page 2 to "P2.Form.Student ID #" and the radio buttons rename to "P2.Form.Question 1" etc. Each time I press the button, it renames everything appropriately.
However, if I hide the template, then when I click the button on page 1, the fields on Page 2 are renamed to "P1.Form.StudentID ##1." AND THE RADIO BUTTONS DO NOT RENAME. They get the name "P1.Form.Question 1" etc. So the student name field did rename in a way that allows me to enter a new name on each page, but it isn't actually reflecting that I am on page 2, and as for the radio buttons, at that point, I cannot enter different scores on different pages because they are all part of the same radio button grouping.
If I use check boxes, they rename similarly to the student ID field, but I don't want to use check boxes because I want to return one possible score value for each question for tabulating the data. I don't want to leave the template visible because when I distribute this form to other graders, they may enter values into the template page without realizing it, and then when the spawn forms they will have wrong data already entered.
Here is the script that I have set as the button's Mouse Up script:
// Specify the name of the template
var template_name = "Form";
// Get a reference to the template
var t = getTemplate(template_name);
// Add a new page based on the template
if (t !== null) {
    t.spawn({
    nPage: numPages,      // Add the new page to end of document
    bOverlay: false,      // Create a new page, not an overlay
    bRename: true         // Rename the fields
} else {
   app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
Thanks for your help

Hi again GKaiseril,
If you have the time, would you be able to tell me how to do that? I tried just changing the page number of the template page to zero, but I get the error "Please enter a starting value of at least 1."  I definitely noticed that all of the discussions about similar subject do all say to somehow put the first page of the form before the template and then hide the template, but I don't think that I know how to do that. I read your response on this discussion "Re: Self replicating form pages in Acrobat Pro 9 (Win XP)" before I ever started this discussion, but have to admit that I can't figure out how to follow your advice "When I create a from that uses a template, I create the template and then spawn the 1st page of the form before the template and then work out the scripting for the 1st page and template and then hide the template."
Thanks

Similar Messages

  • Why are my PalPal buttons not working properly after working fine for weeks?

    I have not touched the site till I heard there was a problem today. The dropdowns are not showing up.
    https://www.appne.net/events.html
    Sometimes if I hit refresh or republish the site, they show up again. then after testing to see if they work, they disappear again.
    I just upgraded to the April 2 release to see if it helps and it did not.
    I talked to paypal and tested the buttons on their testing website and they worked fine.
    I did not use the widget in Muse to create...I cut and paste the code from paypal.com button creator.
    Anyone else having the same issue?
    Please help if so. Thank you!
    Marie

    Hi Marie
    I checked the drop downs and paypal button, it works fine on my end.
    http://take.ms/dhdkR
    Please try to clear browser cookie and then check , or try with a new browser.
    Thanks,
    Sanjit

  • TS4062 why are my music videos not synching to my ipad from itunes?  only songs are synching

    I can get my itunes songs to synch to my ipad but not my music videos.  what am i doing wrong?

    Hey there 2Chainz,
    It sounds like youre being prompted that there is not enough space. I would use the following article to help resolve the issue named:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/ts1503
    Try disconnecting and reconnecting your device, then syncing again to solve this issue.
    Orphaned files may remain on your iOS device if it is physically disconnected while syncing music, podcasts, videos, or photos. This can prevent iTunes from syncing the iOS device on subsequent sync sessions. When this happens, the Capacity indicator in iTunes may report a large amount of "Other" disk usage for the iOS device. To resolve this issue:
    Turn off the music or photo sync option in iTunes for the device.
    Click Apply to sync the changes to the device.
    Turn the music and photo sync options for the device on again.
    Click Apply again to try to sync the device to iTunes.
    If the 'Not enough free space' alert appears, continue to step 5.
    Turn off the automatic syncing functions for the iOS device. To do this:
    Select the iOS device from the iTunes window and click the Summary tab.
    Deselect "Automatically sync when this device is connected" and select the "Sync only checked songs and videos" checkbox.
    Click Apply to sync the changes to the device.
    Reduce the amount of data that is being synced to the device and resync the device. For example, if syncing your Music library exceeds the memory capacity of the device, choose "Selected playlists" to transfer rather than "All songs and playlists" under the Music tab in iTunes.
    If the 'Not enough free space' alert appears, continue to step 6.
    Restore using iTunes.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • ValueChangeListener in Radio Button not acting after first time

    Hi,
    I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
    Radio Buttons
    <af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
    layout="horizontal"
    id="metallurgistRadioBtn"
    autoSubmit="true"
    valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
    disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
    <af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
    <af:selectItem label="Approved" value="Approved"/>
    <af:selectItem label="Rejected" value="Rejected"/>
    </af:selectOneRadio>
    Function to Open the Window
    public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
    // Add event code here...
    FacesContext context = FacesContext.getCurrentInstance();
    // Create the dialog UIViewRoot
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, // not launched from any component
    null, // no particular parameters
    true, //show in dialog
    properties);
    Javscript for resetting the Radiob button
    function closeWindowOnCancel()
    if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
    Please suggest what can be the possible cause.
    Regards,
    Neeraj

    Hi,
    I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
    Radio Buttons
    <af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
    layout="horizontal"
    id="metallurgistRadioBtn"
    autoSubmit="true"
    valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
    disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
    <af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
    <af:selectItem label="Approved" value="Approved"/>
    <af:selectItem label="Rejected" value="Rejected"/>
    </af:selectOneRadio>
    Function to Open the Window
    public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
    // Add event code here...
    FacesContext context = FacesContext.getCurrentInstance();
    // Create the dialog UIViewRoot
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, // not launched from any component
    null, // no particular parameters
    true, //show in dialog
    properties);
    Javscript for resetting the Radiob button
    function closeWindowOnCancel()
    if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
    parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
    Please suggest what can be the possible cause.
    Regards,
    Neeraj

  • Why are my mins usage not on line its been about a mouth now

    why are my mins used not on line,it has been about a month now. it shows message that i don't even have

    Here are a few things that you check and can try.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.

  • Why are my exported files not going to me email?  I have used 3 different ones.

    Why are my exported files not going to my email (receipts &amp; business card)?  I have used 3 different ones...2 yahoo and 1 hotmail.  I have checked spam box also.

    For the Receipts app I chose to export the info as a PDF file..an email was requested..I entered info and clicked send.  For the Business Card app I chose Send, not Print..an email was requested..I entered info and clicked send.  I haven't received anything, not even in my spam folder.

  • Why are my five websites not showing up in my CC browser window - CC Account Panel?

    Why are my five websites not showing up in my CC browser window - CC Account Panel?
    I have a full account!
    g

    Gmpulaski which web sites are you referring too?  Is it the five Business Catalyst sites included with your membership?

  • Why does the sync button not work in itunes when my ipod touch is connected

    why does the sync button not work in itunes when my ipod touch is connected?

    It's working for me in Acrobat XI:
    I'd try logging into Acrobat.com from your browser, and log in with your Adobe ID. There may be a problem there:
    workspaces.acrobat.com

  • Why does my edit button not show in Address Book?

    I have installed Lion on my laptop; however, I am not able to edit any Address Book entries. After doing some research, I have learned that I am missing the "Edit Button" that is supposed to appear on a contact that will enable editing.  My Edit button does not appear - I have only "Add Contact" and "Share" buttons.  Why does my edit button not appear?
    I have not noticed any other issues with Lion.
    Thanks!

    Try this:
    Select "Go" from the finder whilst holding down the Alt key and "Library will drop down in the list.
    Library/preferences/ and delete this :  com.apple.AddressBook.plist
    re-start your comp and it should work.
    This . plist will re-create itself when re resart all nice and clean and fresh.
    Should work, it does for most things.
    Good Luck

  • Why are my video edits not being saved on Photoshop CS6?

    Why are my video edits not being saved on Photoshop CS6?
    I made a TON of edits in a video group, then duplicated that group into another file... and all my edits are gone.
    I spent hours working on this, so please let me know what the hell happened and how I can make sure it never happens again...
    also--why would CS6 come with such a devastating feature?!?! Who came up with this???

    Welcome to the forum.
    I did not see any reference to Save, Save_As, or Save_As_a_Copy. Did you use one of those?
    Good luck,
    Hunt

  • TS2972 why is the import button not showing at the button right hand corner of iTunes?

    why is the import button not showing at the bottom right hand corner of my ITunes page.  I am trying to transfer files from my home share library onto a new computers library.

    See if it isn't hidden under the View menu. iTunes- Turning on iTunes menus in Windows 8 and 7.

  • Why are my app updates not transfering to my ipad when i sync with my desktop?

    Why are my app updates not transfering from my desktop when I sync?

    I have updated my apps on my desktop and then I am syncing my Ipad. I just transferred everything to a new desktop and now my update to my games, etc. Are not coming across to my Ipad like they used to. I am not receiving an error message. I can transfer my new purchases to my desktop, but it isn't going the other way.

  • My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    linda mariefromharper woods wrote:
    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?
    It may be in the process of making room.  What version of OSX are you on?    (That process can be excruciatingly slow on Leopard or Snow Leopard backups over a network;  Lion has improved it greatly.)
    A clue may be lurking in your logs.  Use the widget in #A1 of  Time Machine - Troubleshooting to display the backup messages from your logs.   That should help you figure out what's going on.  If in doubt, copy and post them here (but if the same ones repeat over and over, drop most of the duplicates).
    If you can, connect via Ethernet; it will be 2-3 times faster.

  • Why are the jpeg icons not visible in finder when created by PS6

    Why are the jpeg icons not visible in finder when created by PS6

    hi
    I have faced the same problem ... I didn't find the solution yet
    but please visit this link http://www.oracle.com/technology/products/forms/pdf/webicons.pdf
    you'll get everything you want to know
    I'm not try it yet.
    Best wishes

  • Settings: Why are basic webservices settings not included (i.e. OneDrive behavioural settings are hidden in the system tray)?

    What is the idea of a new control panel if you can not in fact get an overview or kind of dash board?
    Settings includes PC+Cloud, i.e. Accounts let you do settings for the cloud, i.e. connect to your live account.
    But why are basic webservices settings not included (i.e. OneDrive settings is in the system tray)?
    Great consolidation is happening now between settings, control panel - i.e. getting rid of obfuscation, blur and complexity between legacy settings (control panel) and actual kind of settings. However do not recreate the problem by leaving the
    next step of integrating cloud settings across the middleware. What is the idea of a new control panel if you can not in fact get an overview or kind of dash board?

    Hi,
    Interesting issue, what about other configuration or settings? Do they work fine or keep reverting after a reboot? Have you tested this issue in another user account? What is the result?
    Regarding to unable to save settigs for current user hive, I doubt whether there's an application you installed recently or an malware\virus changes the permission of registry entry or value of registry keys like
    HKCU\Software\Classes which causes this issue.
    Yolanda Zhu
    TechNet Community Support
    Hmm... I don't understand. Nothing is reverting after a reboot, as well I'm
    not unable to save settings in the current user's hive. The correspondent registry keys can be saved perfectly fine and they are
    deleted, not reverted after a reboot. I pointed to the exact code that does it, the code is located in Microsoft DLL with all certificates and digital signatures intact. Permissions obviously don't matter, since svchost.exe is executed with the highest
    integrity level and under the System user account, the keys in question inherit permissions, which allow System to do whatever it needs without restrictions
    by default, you can't change it to allow more.
    So can you explain how it can be some malware?
    The issue is intermittent, I don't have a 100% repro, therefore “testing” under another user account is doubtful.
    Dei nostra Matrix est.

Maybe you are looking for