Print multiple lines of page based on radio button choice group

Hello... I have a PDF file that is a form of group request, consisting of 6 distinct forms. On the first page, I have 6 groups of option buttons "Yes / No".

If the radio button for one or more of these groups is selected as 'Yes', then when button click Print (on the page) then the appropriate page range prints.

It is desirable but not essential for them to be printed in a print job.

The Code I've been adjust to try to get the result is less but I have myself linked in knots now and any help would be greatly appreciated:

Thank you very much



//<AcroForm>
//<ACRO_source>PrntForms:Annot1:MouseUp:Action1</ACRO_source>
//<ACRO_script>
/*********** belongs to: AcroForm:PrntForms:Annot1:MouseUp:Action1 ***********/
var nButton = app.alert({
cMsg: "Your selected forms will be sent to your default printer.\n\nIf you require to print to an alternative printer, press cancel and select 'Print' from the 'File' menu.",
cTitle: "Submit Forms for Printing?",
nIcon: 1, nType: 1
});
// array for button responses
//var aResponse = new Array("OK", "Cancel");

if(nButton == 1) 
{    this.print({ bUI: false, bSilent: true, bShrinkToFit: true, nStart: 1, nEnd: 1 });
} else
if(nButton == 0) 
{    this.Exit
}

var a_app;
if(this.getField("AppForm1”).value=="Yes"){
    a_app = "1, 1";
} else a_app = "0, 0"

var b_app;
if(this.getField(“AppForm2”).value=="Yes"){
    b_app = "2, 2";
} else b_app = "0, 0"

    var pp = this.getPrintParams();
          pp.interactive = pp.constants.interactionLevel.full;
          pp.printRange=[[a_app], [b_app]];
          this.print(pp);
//</ACRO_script>
//</AcroForm>

In fact, the last part should be something like this (I tried to change the code, but it is buggy):

If {(printRanges.length>0)}

pp var = this.getPrintParams ();

pp.interactive = pp.constants.interactionLevel.full;

pp.printRange = printRanges;

This.Print (pp);

} else app.alert ("no page ranges are selected.");

Tags: Acrobat

Similar Questions

  • Print multiple Copies per Page?

    All I want to do is print multiple copies per page.  I use the parameter "Borda (x 4)" in the Canon Print Studio Pro software.  I can see how in 6 of Lightroom, but my son is running only Digital Photo Professional 3.14.48.1 with a Pixma Pro-100.

    All we get is just an impression in the top left corner of a landscape layout.  We use paper 13 x 19 and can print images of size on the paper without problem.  All we want is to print multiple copies of the same image on a single sheet.

    You can use My Canon Image Garden (free download)

  • multiple lines of text on a command button

    Is it possible to get multiple lines of text on a command button.  Instead of a large button with the text "start the Test System".  I would like a big button with 3 lines.

    Beginning

    Test

    System

    If you change the label of the button control in IUR editor you can split the text into lines with Ctrl + Enter.

    If you programmatically set the label, "\n" code integration in the text of the label.

    Both methods work for all types of control, not only for the command buttons.

  • How to print multiple images per page

    How to print multiple copies of a single image on a single page

    Duplicate the photo before you print it, and then select all copies, then use ⌘P to print the photo.

    To duplicate the photo select and enter the key ⌘D combination or use the menu entry "Image > Duplicate...» »

  • Creating summary based on radio button selection

    Hi all

    I have this 22 page form which has many choices of button radio. Please find attached screenshot.

    My requirement is to have a summary on page 23, where all default options are mentioned. Assume that if the point 1, 6. 17 208 are marked as failed, they should be mentioned on the last page with comments.

    I've browsed the forum before asking the question, however, did not find any.

    I would be really helpful if you could point me in the right direction.

    Best regards

    Akanksha

    summary.jpg

    You need to iterate over all the fields, count how many of them have the value "Fail" and then display the result in your text field.

    Iterate over the fields or the other can be done with a table containing the names, or if their names are consistent ("Item1", "Item2", "Item3", etc.) then you can use a simple loop to do.

    Edit: I notice that you want to display the actual names of the items that failed, not just their number. It's a little more complex.

    If the descriptions of each item are not saved in a text field where you could read, you need to create some kind of data model in your script that will specify the name of each item, you could use them in the summary.

  • Change the background fill color based on Radio button selections

    Hello

    I am very new script in LC, so I hit a wall on my last form. I am creating a form with a scale of 'leikert-like', however one of the stipulations (from my boss) is in this context of buttons are to be filled based radio which button is selected.

    For example, Question 1 has 4 radio buttons to choose: poor, fair, good, great. If the person completing the form selects poor, I wish the poor to fill background color. If someone chooses right, I would like to than this background color to be filled, as well as the background of the poor. Good selection would fill the colors of good, fair and poor; and selecting the big would fill the four colors.

    Someone has ideas of how / if possible? In my first tests, I got the button itself to change the colors, but not the background fill (which can be changed manually on the border palette).

    Any ideas would be much appreciated. Thank you!

    Aaron

    Here is the code that you can use in the event of modification of the ExclusionGroup (title default RadioButtonList) object. It is the parent of each individual option button object.

    for (var i=0;i
    

    This also assumes that the value of each option button is sequentially numbered from 1 to however many boxes option you have.

    Now, here's the thing. I'm assuming that each radio button has a different color. You might code for the colors yourself in JavaScript, but I manually chose the colors through UI Designers. Once all the colors of radio buttons have been defined, select a radio button and go see > XML Source. Where we see the element, add the presence of the attribute = "hidden". Do this for each option button. Here's what I mean:

                      
                      
                         
                          
                            
                         
                      
                      
    

    Kyle

  • Event based control radio button

    Is there an easier way to write this code and keep the same functionality?

    Just use number of table of Boolean

    The method works if you don't allow zero points NOTE: do not replace the Add 1 increments.  We use the constasnt U32 to compel the radio button enum or vice versa just incrment the enum; enum (0.1) ++ = (1, 0) enum and enum (0.1) + 1 = U32 (1,2)

    If you do not allow that zero elements remove the addition because "no selection" becomes 0

  • Adobe Java Script to change the field of reading to write based on radio button selection

    I created a form the question asked is "Do we have a credit limit?" the user can select a Yes or not by using a radio button.  If the user selects Yes we do not have a credit limit that I want the text field "CreditLimitAmount" to change the read only entry.

    Here is my code, but it does not work, someone would be able to see what I'm doing wrong?

    GetField ("CLYes"). Value
    If {(event.target.value==="Off)"}
    f.ReadOnly = false;
    f.fillColor = color.white;

    } else {}

    f.ReadOnly = true;
    f.FillColor = Color.Gray;
    }

    You have it backwards. Use this code as your radio buttons script two MouseUp and remove the code that you have applied to the text field:

    var f = this.getField("CreditLimitAmount");
    if (event.target.value=="CLYes") {
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • Fields of text format based on radio button selection

    (Beginner) I have a form, which one party uses five 5 choice of radio button.  If "Choice5" is selected, I want to field 'X' (in the form) to display a red border.

    I need assistance with the JavaScript code for this action.

    Thank you!

    A minor change...

    "this.getField("X").strokeColor = event.target.valueAsString =='choice5 '? Color.Red: color.black;

    ... and it worked.

    Gilad thanks D!

  • Achieve an image based on Radio button selection?

    Hello

    I created a movieclip which is simply a question and the user chooses from a list of option buttons

    I created this and it works fine, but I can't understand how to set up a button "Next" or "Submit" button that, according to the choice of performed radio button, the user accesses a specific image or label.

    I bought the Adobe Flash CS5 bible, but it seems to be little information on Radio control buttons, only how to put in place to test.

    any help would be grateful.

    Look at the the RadioButtonGroup class selectedData property.  You can probably use that in any function call so that you use the property of the value assigned to the RadioButton selected.  The property value you assign to the RadioButton (s) can be different picture that each would end by will.  So in your event handler for the button function send, you can simply use something like: gotoAndStop (radioGroupName.selectedData);

  • Nested panel based on radio button selection

    And I'm back.

    In Guide Builder.

    I have a group of 4 buttons radio buttons. When "delete" things, I want to 'user id' display (that's its own Panel).

    That's what I did and it doesn't work:

    Panel 'user id' is defined in nested optional

    in the display panel rules specify for this Panel - apply the display rules, add a rule.

    under group or field guide, I chose the list of radio (the one above with 4 options) button.

    condition of game to 'equal '.

    Set the value to 'delete '.


    When I saw the guide and choose 'Remove' user id Panel does not appear.

    Who am I lack/hurt?

    Replied to your private email.

    Paul

  • Status field change based on Radio button selection

    I have a form that has a text field 'Status' and several radio buttons named: submitted for approval, approved, not approved, items received and distributed.  I need the status of self serve option button is selected.

    For example, when the 'Submit for approval' option button is selected, I want the State to be "Submitted for approval", then when the 'Authorized' option button is selected, I want to be "authorized" status and so on.  How can I do this?

    Thank you!

    Here is one approach.

    Steve

  • JavaScript to set radio button choices using the drop-down list box value.

    I use Adobe Acrobat Pro DC version 2015.016.20039 on a MacBook Pro OS X El Capitan version 10.11.6.

    I have a set of named CitBox radio box choices. I'm defining what choice is selected from out of a drop-down list named AppCitizenship box.  Both of them have six choices with values of 1, 2, etc. (I thought having the same values would make easier the translation from one to the other). Thanks in advance.

    If you used the same values, then it is pretty easy. Just use this code as the validation script custom field drop-down list:

    this.getField("CitBox").value = event.value;

  • Where did the installation to print multiple images per page?

    The Panel on the right in the 'Print' module has changed. Previously, the Committee was up and down, 'Image Settings', "Rules, grids, and Guides," 'Cells', 'Page', and "Print Job" with the 'cells' dropdown that gives me the choice of "add to package" where I could easily add and adjust the size of the cells. Now, (I have not downloaded anything) panels has from top to bottom, 'Settings of the Image', 'Layout', 'Guides', 'Page' and "Print Job" and I don't see a way to print several images (either the same of different images) on the same page.

    This should really be in the Lightroom forum!

    However, on the left side of the scree we do not, what are the parameters? They must be defined for a multiple-image document and not as I suspect one presented here.

  • After installation or upgrade to Firefox 31, starting Firefox does not display the home page, personalize displays a blank page and the radio button does not work

    I am the admin of Windows for a University Department and install PC with Firefox all the time. This problem does not occur with every PC I would maintain, only a selection bit (model different laptops with Windows and update 1 8.1.) Until today, it has happened with the new user (with admin rights) accounts that I place on laptops for our staff. Today, this happened with the account administrator while setting up a new laptop. In all cases so far, I have install Windows from a registered image that was created by using sysprep.

    I tried many suggestions to reset Firefox, removing the profile of Firefox users, removing the Windows profile users, uninstalling/reinstalling Firefox, uninstall/reinstall of Firefox and the latest Java, but nothing helped. After uninstalling, I run an application to delete the caches and temporary files and even remove manually the keys to register HKLM\SOFTWARE\Mozilla and HKCU\SOFTWARE\Mozilla. I restart and make sure that the installation folder is deleted after uninstalling.

    Results are the same: after installing Firefox 31, the initial settings for migration, IE or Chrome pop up and after having clicked on the button finish, Firefox starts but does not display the home page of the new user, only a blank page. By clicking on the Options (3 bars) button does nothing. Right click in the appropriate box, the shortcut menu appears, so I can choose to customize, but which opens another tab with subject: Customize the URL and the page is blank. In the right click context menu, I can activate the menu bar and get options from that.

    My last attempt helped a little. I uninstalled Firefox 31, cleaned, removed the profile user Firefox, rebooted and then installed Firefox 30. Initial start-up runs and tells me that I'm not up-to-date and the works of button Options. But I can't always customize.

    Then I upgraded to Firefox 31, but then it's back to no start page, no options button and no customization. I can go down to 30 and get customize practically works again.

    Addon only is for McAfee Scriptscan to Firefox 15.1.0, just after installation is disabled.

    Any help would be appreciated. Thank you.

    You can try a different theme of Windows?

    Have you tried to start the computer using Windows safe?

    Start the computer in Mode safe mode with network support Windows (on the startup screen, press F8) as a test.

Maybe you are looking for

  • What are the costs associated with the synchronization

    What are the costs associated with the synchronization

  • DVD is not recognized on Satellite L500-1XJ

    Hi all The DVD is not recognized when a dvd was released in the laptop.I tried to reinstall the driver but no luck.Does anyone have an idea? Thank you Gunter

  • pspimage

    should what program I open documents pspimage

  • Runtime error program: c:\program files\outlook express\msimn.exe

    I get this error message when you use Outlook Express: "execution error program: c:\program files\outlook express\msimn.exe. I can restart OE and it will be authorized for a period of time but then returns the error message and it stops again... Help

  • Can't print envelopes

    MFP HP LaserJet 1536dnf model bought in spring 2012.  Using Windows 7 64 bit.  When I select printing, he said only: cancellation on the printer screen. Have tried going into Control Panel and change the parameters inside the printer without result.