Why are my radio buttons do not rename pages spawned from a hidden template?

Hello world

I'm new to PDF forms and have never tried to use JavaScript. However, I have learned many things and I have followed several threads and almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to find my problem. Your help is greatly appreciated.

SYSTEM REQUIREMENTS: Adobe Acrobat X Pro Mac OS 10.8.5

WHAT I WANT: a form of several pages (100 pages) of grading of student assignments. Each page must have the same fields, but as each page belongs to a new student, he must have different values in the fields on different pages. Each page contains 4 questions to score, with possibilities of 4 points for each question (0, 1, 2, 3 points), and then only to 01:20 should be selected by the question.

WHAT I HAVE BECAUSE, by following the instructions in this thread (Re: multiple-page form) ):

(1) created a form with a field for the name of the student and 4 sets of radio buttons (labeled Questions 1 to 4, with choice of score 0-3).

(2) placed a button at the bottom of the page that will generate a new page and rename fields.

(3) set this page as a template.

4) has created a page.

(5) made the model "hidden."

THE PROBLEM: Steps 1-4 above work perfectly - as long as the model (called 'Form') is visible, when I click the button, a new page generates and student name field renames fields to Page 2 for "P2. "Form.Student ID # ' and the boxes option and rename it 'P2 '. Form.Question 1 "etc. Whenever I press the button, it renames everything properly.

However, if I hide the model, then when I click on the button on page 1, Page 2 fields are renamed "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 every page, but is not actually reflecting that I am on page 2, and regarding radio buttons, at that time, I can't enter the different scores on different pages because they are all part of the same group radio button.

If I use checkboxes, they rename similarly to the student ID field, but I don't want to use checkboxes because I want to back a possible score value for each question to have the data in the table. I don't want to not let the model visible because when I distribute this screen allows other workbooks, they can enter values in the page template without realizing it, and then when the forms of spawning, they hurt the data already entered.

Here is the script that I put as the mouse to the top button script:

Specify the name of the model
var template_name = "form";

Get a reference to the model
var t = getTemplate (template_name);

Add a new page based on the template
If (t! = null) {}

t.Spawn({)
nPage: numPages, / / add the new page at the end of the document
bOverlay: false, / / create a new page, not an overlay
bRename: true / / rename fields
});

} else {}
App.Alert ("the named model-'" + template_name + "does not exist in this document.", 1);
}

Thanks for your help

It's basically the script to a page of spawning but changed the page number 0 and adds the code to hide the model >

Specify the name of the model

var template_name = "form";

Get a reference to the model

var t = getTemplate (template_name);

Add a new page based on the template

If (t! = null) {}

t.Spawn({)

nPage: 0, / / add the new page at the beginning of the document

bOverlay: false, / / create a new page, not an overlay

bRename: true / / rename fields

});

t.Hidden = true; hide the model

} else {}

App.Alert ("the named model-'" + template_name + "does not exist in this document.', 1, 0");

}

If we do not hide the model and the model field are met, then the model replicates the field with the value of the field.

Tags: Acrobat

Similar Questions

  • Why photoshop doesn't let me not renaming my layers

    Does anyone know why Photoshop won't let me not renaming my layers?

    I may be your solution - I just this exactly the problem and have run into a few times recently, seemingly random. The psd's happening was a floating window - when I moved it back in the dock he allowed me to rename the layer. I don't know if it's just my system, but its fixed it for me overall. I hope that this will work for all of you as well.

  • Selection of a radio button does not work in a popup invoked by default

    Hi all

    I'm working on a condition in which action triggers innovation of a popup on the Web page. The popup has 2 radio buttons and by default, I need to show one of them selected.

    I use the code below in the declaration of popup for the radio buttons.

    < af:selectOneRadio id = 'sor1' autoSubmit = 'true '.

    styleClass = 'popup-text-key '.

    value = "accept" >

    < af:selectItem label = "#{portalBundle.ACCEPT} '"

    value = "accept" id = "si3" / >

    < af:selectItem label = "#{portalBundle.REQUEST_FOR_CHANGE} '"

    value = "requestChange" id = "si2" / >

    < / af:selectOneRadio >

    The problem is when I run the application, on the call of the pop-up window, the default selection in the radio button is not displayed. If I put this code somewhere else in the Web page, the selection is correct.

    Any suggestions or pointers would be useful.

    TIA

    This is what works for me (well I used 12 c but lets see if it works for you too)

    The bean code

    public class PopupRadioBean {}

    String selRadio;

    {} public void setSelRadio (String selRadio)

    this.selRadio = selRadio;

    }

    public String getSelRadio() {}

    If (selRadio == null) {}

    selRadio = "accept";

    }

    Return selRadio;

    }

    public PopupRadioBean() {}

    }

    }

    Page code

    As you can see, I put the string selRadio in bean to 'accept' if the value is null (meaning that the option button has not been selected).

    Timo

  • Why does my SkyDrive icon display not in my favorites from Windows Explorer?

    Why does my SkyDrive icon display not in my favorites from Windows Explorer? I installed on my PC under Windows SkyDrive 8, but Skydrive icon does not appear in the Windows Explorer Favorites? How can I fix it?

    Thanks for your response - I did this and the last step of drag or copy in the Favorites list failed. He said "can't put in Favorites? This is the real icon for SkyDrive placed on desktop as a shortcut. Any thoughts?

    Hello

    Right click the Skydrive shortcut that you created, and select copy.

    Open Windows Explorer and navigate to the C:\Users\your name\Links folder.
    (Where 'your name' is the name of your user account)

    Right click on the links folder and select Paste.

    This will place the Skydrive folder in the Favorites list in the file Explorer.

    Concerning

  • check the radio button does not submit the form?

    Hello


    Your name:
    E-mail address:
    Contact no.:
    Topic:


    Message:




    Can not read the image? Click here to refresh

    I have a form on my site,

    and all his work.

    But I noticed that the information of the radio button

    is not sent?

    may an advise why?

    Also, can someone suggest how I can configure the name where the email?

    as when the email is downloaded, it come with my Web Host/Server name?

    Thank you

    < Center > < form name = 'contact' method = "POST" action = "form_process.php" >

    < table width = "306" border = "0" cellpadding = "0" cellspacing = "0" >

    < b >

    < td width = "93" height = "28" valign = "top" > your name: < table >

    < td width = "213" > < input name = "name" type = "text" >

    < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Correo electronico: < table >

    < td > < input name = "email" type = "text" > < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Contact No.: < table >

    < td > < input name = "contact" type = "text" size = "24" > < table >

    < /tr >

    < b >

    < td height = "85" valign = "top" > subject: < table >

    < td > < label > < input name = "category" type = "radio" value = "Appointment" / > appointment < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Schedule" / > opening hours < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Products" / > Products < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Other" / > other < / label > < table > < /tr >

    < td height = "28" valign = "top" > Message: < table >

    < td > < textarea name = "message" = "24" cols rows = "5" > < / textarea > < table >

    < /tr >

    < tr > < td > < table > < td height = "85" valign = "top" >

    < br / > < img src = "captcha_code_file.php? rand = <?" PHP echo rand();? ' > '.

    ID = "captchaimg" >

    < br / > < label for 'message' = > enter the above code here: < / label >

    < br / > < input id = "6_letters_code" name = "6_letters_code" type = "text" >

    < br / > < small > can not read the image? Click on < a href = "" javascript: refreshCaptcha(); "> here < /a > to update < / small >"

    < table > < /tr >

    < b >

    < td > < table >

    < br / > < td valign = "top" align = "center" > < input type = "submit" value = "Submit" name = "submit" > < table >

    < /tr >

    < /table >

    < / form > < / center > < br / > < table >

    OK - I see what is happening. The script that determines the content of captcha also sets the session variable. To read this variable on the processing page, you need to enable sessions there too. -Change

    If (isset($_POST['submit']))

    on this subject.

    {if (! isset($_SESSION))}

    session_start();

    }

    If (isset($_POST['submit']))

    If there is an error of Captcha, you will also need to print that the visitor sees an indication that they do not have this right. There are several ways to do it, but probably the easiest is just to send them to the test to white form with an error message, so change that-

    Header ('Location: thank_you.html "");

    }

    on this subject.

    Header ('Location: thank_you.html "");

    } else {header('Location:captcha_error.html') ;}

    then create the captcha_error.html page that explains what that went wrong, with a link to the page of the form.

    See if that helps.

  • Problem with radio buttons does not

    Hi, I just modified someone code a bit because instead of wanting a drop down menu, I wanted to use radio buttons.

    Unfortunately, the structure of the event does not appear as radio buttons, but I do not know why... Just, right now the VI runs and stays with the same "camera name" all the time. I will attach the VI in order to get an idea of what I'm talking about.

    This is because you have the event set up to capture the change in value for the camera name.  Try to create a Radio button value change event.

    Lynn

  • Required radio buttons will not validate/submit

    I'm having a problem in the ES4 Designer (also seems to occur in the new AEM forms 6.1) where my required radio button fields are not validated.  Increasingly, any of the fields below a required radio button be validated either.  If the box is deleted, all other fields validated as expected. Someone at - it suggestions? I don't remember ever having this problem with previous versions.

    I tried to use checkboxes to simulate radio buttons, but it's extra code to validate the box and I find myself with double validation messages (one for each option) it was not easy to use - open to suggestions for improvement of the workaround as well.

    If Adobe has led me to this: https://forums.adobe.com/thread/1152792

    Change the target of the form to 9.1 in the properties of the form solved the problem of validation. This option is not available in the latest version of the designer, however, you must use version 11 or lower for this to work.

  • Values for radio button is not selected.

    Hi all

    I have two regions and the two regions has radio buttons in that. First, I select the option buttons in the first region and then I select the option buttons in the second region at this point in time, the values in the option boxes first region remains not chosen secomd region values remain selected! Why is this behavior?

    Thank you

    Hello

    Check the 16855 application in your workspace. It may be useful

    Sunil Bhatia

  • Radio Button value not made

    Hello

    I am a beginner with APEX. I created a form that contains a button called P3_WHO_ARE_YOU with two options. The option button is NOT from a table, it is a part of basic table another kind.

    I also have a drop-down select list which I would like to control the LOV by the value of the group mentioned above.

    When I launch the form and select one of the Radio options, and then assess the binding variable in LOV of selection as list: P3_WHO_ARE_YOU, it is null. I also checked the page to see what is stored in the session element and indicates null.

    The Radiogroup element is configured with display as value "Radiogroup". I don't know I'm missing something very simple.

    Thanks in advance for your help.

    Jason

    Hi Jason,
    Check out this example of demo in my application. Probably you are looking for something like this.

    http://Apex.Oracle.com/pls/OTN/f?p=51417:24

    user name: demo
    password: demo1

    Hope this will help,

    Pascal M
    http://Tajuddin.whitepagesbd.com

  • Why are the rotation buttons upside autour

    Why are the rotation of the knobs the wrong way autour.

    It allows to be that we could move the buttons of the icon freely, but now we are forced to put them as chosen by Adobe.

    The problem is that Adobe is American and we know all that the Americans do things the wrong way autour. :-)

    So why does make sense to them than the Rotate counterclockwise button is on the right and the right-hand rotation button is left?

    If you want to rotate a PDF anti-clockwise, then you choose the button anti-clockwise. It is a movement of the LEFT then why is the button counterclockwise on the right?

    Hello

    Thanks for your suggestion. If you use Acrobat DC we have options page under the tool rotation organize Pages (with the same icons) where changes can be saved, while, to discover rotation only tools that cannot be saved are opposite. It's just to make the difference between the two sets.

    Thank you

    Abhishek

  • Background color for the radio button does not change during execution

    Hi everyone,

    I set the background color of shapes in blue in the formsweb.cfg file. I used 4 radio buttons in the form and at the time of execution, the background color of the option button is gray.

    So I used SET_ITEM_PROPERTY trigger to set the background color, but it is not chaning. It remains grey.

    SET_ITEM_PROPERTY('TRANS_MASTER.) MODE_OF_PAYMENT', BACKGROUND_COLOR, 'r90g117b148'); - Radio button group

    SET_ITEM_PROPERTY('TRANS_MASTER.) CASH', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CARD', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CUSTOMER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) REDEEMVOUCHER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button

    I used the RGB color as r90g117b148.

    Please help me,

    Thanks in advance,

    Published by: lola amrani may 5, 2010 07:56

    Hello

    When the desig, assign ownership of background color for group of Radio buttons and boxes option for

    François

  • Entered radio button does not

    I try to have radio buttons in my HTML file panel, but for reasons unknown, they appear as lines of text instead of under form of radio buttons.

    Preview the HTML file in a browser displays the buttons without problems.

    What is the problem here?

    This has been fixed after that I did:
    Adding the type- attribute to the entry tags

    Addition of the attribute checked the entry tags (it's a Boolean, so you assign a value to it--you write just checked)

  • Same radio buttons (groups) on two pages

    Two PDF pages with forms: for the most part the same - first of all the page for company, second for the customer. Contains the same forms (differences above, marked as copy for the customer or for society + some additional images on companys copy).

    In Acrobat Pro MS I did and copied shapes from the first page to the second, so they have the same names, and after completing their on the first page, same forms are automatically filled on second too (as expected).

    OK to the check boxes and text fields. Problem with just the radio - changes buttons are not copied to the second page. And when the radio button is checked on the second page, radio buttons in the same group on the first page will be disabled.

    For now, I removed radio buttons copied on the second page (3 groups with 2 to 4 radio buttons) and created new ones (with new names). They can by completed independently (variations on a single page will not register/unregister radios on another page). Better, but not perfect.

    Is it possible to make radio-buttons work even in the text and checkboxes? Thus, when filling on the first page, the changes are automatically copied to the second page (and when someone make changes on the second page, they are copied to the first page too).

    Thanks for the advice (and patience with my English).

    Go to the properties of one of these boxes and option under the tab tick box Options "buttons with the same name and the choices are selected in unison.

  • text/button/display of the radio buttons in a different page depending on the radio button

    Hello
    I have this project wehre I need to display a text message about ten lines each based on the choice of a selection of button radio, then siplay to another page (screen page).
    is it possible donation
    and how?
    This is my code so far.


    In my index.cfm page
    I have the following code.


    If the user clicks
    show message1 / first the radio button then
    It appears
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy


    If the user clicks
    show message1 / second radio button then
    It appears
    pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppp



    < Td > < label > for the: < br / >
    < input name = "mygroup1" type = "radio" value = "show message1" / >
    First option button
    < / label >
    < p >
    < label >
    "" "" < input name = "mygroup1" type = "radio" value = "message recu2" / >
    second option button
    < / label >
    < /p > < table >


    my "submit" button

    < p >
    < input type = "submit" name = "Submit" value = "" gotodiplaypage > > "/ >"
    < /p >

    ------------------------------------------------------------------------------------------ --------

    When submit is pressed then it will go to

    View my stories page

    Dis_mystories.cfm

    Try this...

  • Why are my palps buttons doesn't work does not correctly after working fine for weeks?

    I have not touched the site until I heard that there is a problem today. The drop down menus are not displayed to the top.


    https://www.appne.NET/events.html

    Sometimes if I hit refresh or publish the site again, they show once again. then, after testing to see if they work, they disappear again.

    I installed at the exit on April 2 to see if it is useful, and it did not.

    I talked to paypal and tested the buttons on their test Web site and they worked very well.

    I do not use the widget in Muse to create... I copy and paste the creator code for button paypal.com.

    Anyone else having the same problem?

    Please help if so. Thank you!

    Mary

    In this case, users click on paypal and cancel, then repeat the same process in the same browser. This can be the reason for the drop down or paypal button problem as browser stores the information each time. If its best to erase browser cookies and then check.

    I would like to know if you want to test me with a specific browser or device.

    Thank you

    Sanjit

Maybe you are looking for

  • During sleep and various panic kernel panic / restarts

    Hello world I got an iMac 27-inch end of 2013 with an nVidia card and maximum 32 GB of RAM running El Capitan, and I had a few kernel panic/restart issues lately. It's not happened to me in some time, but this last kernel panic occurred while the mac

  • Satellite L - cannot access a Toshiba DVD player

    My laptop Satellite Pro L-series came with windows and upgrade to Win 7, which I am now running. I tried to read a disc that I burned on a comptuer spent, but tells me it's the wrong region (huh?) - my region is set to 4. So I gave up on it for the N

  • How to back up everything on Cliq XT before upgrade to 2.1?

    Does anyone know how to back up everything; contacts, sms, apps, etc...? Preferably, is it possible to transfer everything to a computer? Thank you.

  • Want to save windows vista updated?

    Hy... Guy. you use windows vista my 70 updates automatically downloads Windows I wana know the place where it records the updates and i cud save their device separated and cud be able to install again for later use or tell me the alternate to save th

  • graphics card for SR1339UK

    Hello can someone help me with a suggestion for the best upgrade graphics card, it is for an older machine, a Presario SR1339UK which currently has installed an ATI Radeon x300se 128MB. Thank you.