Fill color for repeating subforms

I have a repeating subform with subforms County max 5.

Is it possible the 4th and 5th expandable lines to have a different fill color?

Here is the script that I use for the button Add an Instance:

_Item.addInstance ();

Thank you

Here is the script I use to remove button Instance:

If

(_Item.count > 1)

_Item.removeInstance (this.parent.index);

Item is a line in a table.

Hello

First of all, I would be disinclined to appoint an object/subform 'point'. It is very near a reserved word 'point'.

Also in the addInstance() method, you must pass a parameter. The default value is true.

Only way would be to use the layout event: loan of the repeating subform. It is not very effective, because the layout event: loan fires so often when the user interacts with the form. However, it will deal with situations where the lines are added and removed.

if (this.parent.index >= 3) {
     this.fillColor = "255,129,129";
}

This might give you a start,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • How is it when I choose a fill color for my square layer, it comes out darker?

    Hello

    When I do my rectangle by using the rectangle tool in Photoshop CC 2014 and I try to set a fill color for it. It comes out darker? What I mean is when I try to do the color of blue neon that comes out as a "duller" blue As a very light purple.

    Specifications of the PC:

    Processor: Intel Core i5 - 3230 M CPU @ 2.60 Hz

    RAM: 6.00 GB (5.89 usable)

    Operating system 64-bit, x 64 based processor

    Photoshop 2014.2.1 released

    You are in the test color - RGB to CMYK.  Simply press Ctrl/Cmd + Y, once.

  • How to change the properties of the drawing tools - choose 'line' and 'fill' color for tools. DC Adobe Reader.

    Since the update to version 15.009.20071 and today 15.009.20077, I have no control of the drawing of the tools - lines always 'Reds' and the 'fill' is always transparent.

    Before the update I could choose the line and color for filling tool tools right-clicking and selecting a range of.

    Is this a problem of user (me) or has been removed from this capacity?


    Your help is appreciated, as I frequently use these functions.

    Hi Thomas,

    If you use the comment line and you want to change the color or other settings then first draw a line, select and right click it and select Properties.

    Please share more details on the other tool you want to know.

    Thank you

    Abhishek

  • Need help change fill color for checkbox to verify / unchecked

    Is it possible to change the fill color of a checkbox to a different color when someone check?

    Right now I have a check mark as X, but I was invited to see if we can also change the fill color when it is toggled checked/unchecked.

    I played with a few scripts, but nothing I tried works (and I'm super green to Javascript).

    Sure. In the event mouse to the top of a box to check, do something like:

    // Mouse Up script for check box
    if (event.target.value === "Off") {
        event.target.fillColor = color.red;
    } else {
        event.target.fillColor = color.green;
    }
    

    This can be simplified to just:

    event.target.fillColor = event.target.value === "Off" ? color.red : color.green;
    
  • Issue of strange writing with no fill color for the area of redaction

    I put it to any color in the fill color of the area of redaction.  When I mark my redaction, choose apply the drafting, the selected area is displayed.  When I save the file, exit, and then re - open, writing is a party as it is supposed to.  If I choose a fill color of area of redaction, mark my writing and then apply the fill color box now works.  I have to redact the number of pages a day, and have to save and reopen to check my work is very time-consuming.  The strange thing is that it doesn't have to all the documents I'm working on.  I use Adobe 11.0.07.  Any solution greatly appreciated!  Thank you.

    This is because you chose "No Color", which is equivalent to transparent.

    If your use of a white background white.

    Choose what color is the background.

  • How to divide a circle and the fill color for each individual segment

    I know that sounds easy, sorry I'm pretty new to illustrator.

    I need to divide a circle into 7 sections and then fill each of them individually. I tried the polar grid tool to divide the circle, but I couldn't turn each segment into distinct sections that I could color individually.

    The cirlce does not break upward into segments but creates a number of paths, the outline of the circle is a unique path.

    Does anyone know a quick solution to this? Am approaching this the wrong way? Any help would be GREATLY appreciated.

    Thanks for your time,

    Tony

    You can use the live paint after split.

    are you lookin for?

  • How can I apply a model above a fill color?

    Hello, I would like to apply a pattern above a fill color, for the moment I apply fill color, then I convert to smart object and apply the model, this because if I apply the pattern and the fill color, the fill color is more than the model that covers.

    There is a way to skip this procedure and to apply the model above without dynamic objects?

    Thank you.

    Try a color fill layer cut on the base layer and a layer of fill cut-out to that design.

  • change the fill color of button using action script.

    Hi guys... How to change the color of button using the action band. for example, I created a button, and the fill color for the button is green now. After I clicked on the button, I want the button to change the red color.

    If the text is a child of the button, it will be changed by this code.  to remedy this, you must use a background for your button and convert it to a movieclip (if you do this in the authoring environment).  Give it an instance name, as the bg.

    You can then apply the transform.colorTransform to yourButton.bg

  • Problem set fill color in an ItemRenderer

    Hello
    I am currently viewing data, using a histogram with a horizontal DateTimeAxis as a sort of time online. In a custom converter - I put for example a label and a fill color for the bar / segment. If you copy and start the next-sample application you can use the two buttons for "scroll" through the data. You can see that the labels remain in the order (A - L), but the sequence of background colors get messed up after a few "movements" at left and right.
    I tried to replace the control of the visible "window" on the time line with a filter function (on collection coll ArrayCollection) instead of control through the attributes minimum and maximum of the DateTimeAxis - everything, but strange behavior has not changed. Defining the color of filling in updateDisplayList() had no effect either.

    I guess there is something wrong in the way I use the ItemRenderer, but I don't know where.

    I would be really happy if someone can help on this problem.

    TIA

    Uwe

    Files:



    FillProblemMinExample.mxml:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    [Bindable] private var coll:ArrayCollection = new ArrayCollection([)
    {fromD: new Date ("1 August 2007 00:00:00"), TOD: new Date ("1 August 2007 00:59:00"), col: 0x0000FF, label: 'A', val: 1},.
    {fromD: new Date ("1 August 2007 01:00"), TOD: new Date ("August 1, 2007 01:59"), col: 0x00FF00, label: 'B', val: 1},.
    {fromD: new Date ("1 August 2007 02:00"), TOD: new Date ("August 1, 2007 02:59"), col: 0xFF0000, label: 'C', val: 1},.
    {fromD: new Date ("August 1st, 2007 03:00"), TOD: new Date ("August 1, 2007 03:59"), col: 0x0000FF, label: "D", val: 1},.
    {fromD: new Date ("August 1, 2007 04:00"), TOD: new Date ("August 1, 2007 04:59"), col: 0x00FF00, label: 'E', val: 1},.
    {fromD: new Date ("1 August 2007 05:00"), TOD: new Date ("1 August 2007 05:59"), col: 0xFF0000, label: 'F', val: 1},.
    {fromD: new Date ("1 August 2007 06:00"), TOD: new Date ("1 August 2007 06:59"), col: 0x0000FF, label: 'G', val: 1},.
    {fromD: new Date ("1 August 2007 07:00"), TOD: new Date ("1 August 2007 07:59"), col: 0x00FF00, label: 'H', val: 1},.
    {fromD: new Date ("August 1, 2007 08:00"), TOD: new Date ("August 1, 2007 08:59"), col: 0xFF0000, label: 'I', val: 1},.
    {fromD: new Date ("1 August 2007 09:00"), TOD: new Date ("1 August 2007 09:59"), col: 0x0000FF, label: 'J', val: 1},.
    {fromD: new Date ("August 1, 2007 10:00"), TOD: new Date ("August 1, 2007 10:59"), col: 0x00FF00, label: 'K', val: 1},.
    {fromD: new Date ("August 1, 2007 11:00"), TOD: new Date ("August 1, 2007 11:59"), col: 0xFF0000, label: "L", val: 1}
    ]);
    [Bindable] private var minDate:Date = new Date ("August 1, 2007 04:00");
    [Bindable] private var maxDate:Date = new Date ("August 1, 2007 10:00");
    private void prevClicked(): void {}
    If (minDate.getHours () > 0) {}
    minDate = new Date (minDate.getTime () - 3600 * 1000);
    maxDate = new Date (maxDate.getTime () - 3600 * 1000);
    }
    }
    private void nextClicked(): void {}
    If (minDate.getHours (< 6)) {}
    minDate = new Date (minDate.getTime () + 3600 * 1000);
    maxDate = new Date (maxDate.getTime () + 3600 * 1000);
    }
    }
    []] >
    < / mx:Script >
    < mx:Panel layout = "absolute" low "10" top = "10" left = "10" right = "10" title = "something is wrong in... this user interface" >
    < mx:BarChart id = "histogram" dataProvider = "{coll}" height = "130" top = "10" left = "10" right = "10" >
    < mx:horizontalAxis >
    < mx:DateTimeAxis dataUnits = 'hours' maximum = minimum '{maxDate}"="{minDate}"displayLocalTime ="true"/ >
    < / mx:horizontalAxis >
    < mx:verticalAxis >
    < mx:LinearAxis interval minimum = "1" = "0.5" maximum = "1.5" / >
    < / mx:verticalAxis >
    < mx:series >
    < mx:BarSeries displayName = "series 1".
    itemRenderer = "ColoredBarChartRenderer."
    yField = "val" xField = 'TSD' minField = "fromD" / >
    < / mx:series >
    < / mx:BarChart >
    < mx:Button x = "10" y = "148" label = "prev" click = "prevClicked ()" / >
    < mx:Button = "148" label = "next" click = "nextClicked ()" right = "10" / > "
    < / mx:Panel >
    < / mx:Application >

  • I'm trying to set the value for a textfield to an another textfield instance in a repeating subform

    Hi all

    I try to set the value of a textfield in a repeating subform/table row to another textfield in a subform that is repeated with the corrosponding instance number.

    The user has entered a list of key activities in the first part: - KeyActivityRow is the repeating subform.

    xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow.Cell2')

    -KeyActivityRow is the repeating subform-

    Who fills the corresponding occurrence of: -.

    xfa.resolveNode ("form1. #subform. ActivityTable.HeaderRow.Table1.HeaderRow.Cell1')

    -ActivityTable is the repeating subform-

    Kevin

    In the event of form1 calculate. #subform. ActivityTable.HeaderRow.Table1.HeaderR OE. Cell1 enter this script in any language: JavaScript:

    this.rawValue = xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow ["+ ctivityTable.index +"]. Cell2") .rawValue

    Kyle

  • Another question border.fill.color.value

    I'm trying to script an if statement to set the background value according to the instanceIndex of a subform.  I tried it in the click event of the addButton and the subform indexChange event.  I saw an example of exactly what I'm trying to do, but for the life of me I can't find it now.  I searched this forum both the users of the forum and I know that it was in one of them.  In any case, here's what the script looks like:

    -form1. Main_Subform.AdditionalAssaysSubform::indexChange :-(JavaScript, both).

    If

    (form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '0') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '2') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '4') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '6') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '8') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '1') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '3') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '5') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '7') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '9') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    I also tried to use the or (|) and combine the fi.  My question is... I use the correct event; I place the conditional statement in the appropriate place; or I again in left field?  Any suggestions would be much appreciated.  Thanks in advance. -rpeterson

    Hi Renee,.

    Here is an example highlighting the background color of the field nested inside a repeating subform based on the index of the repeating subform. The background color will not change enter/exit the fields but will create a color pattern similar to shadow line of the tables.

    This JavaScript script lives in the repeating subform AdditionalAssaysSubform indexChange event.

    nIndex var = this.instanceIndex;
    nColor var;

    If (nIndex % 2 == 0)
    nColor = "240,240,240";
    on the other
    nColor = "255,255,255";

    Use the following if you want to change the background color of the object
    AddedAssaysDropdown.border.fill.color.value = nColor;
    AddedAssaysDataTable.border.fill.color.value = nColor;
    AddedAssayAvgNeg.border.fill.color.value = nColor;
    AddedAssayDisplacement.border.fill.color.value = nColor;

    Or background color of the following if you want to change the widget
    AddedAssaysDropdown.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssaysDataTable.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayAvgNeg.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayDisplacement.ui.oneOfChild.border.fill.color.value = nColor;

    See you soon

    Helen

  • Conditional break - first rather than repeating subforms

    I have a repeated subform (new instances added by a button). It is sunk and content page breaks are allowed. Pagination is located at following previous/ongoing Parent of filling. I want to all instances of the subform to start on a new page, with the exception of the first instance.


    I think that this is possible by specifying a conditional break. I put in 'Break before', but what can I specify as a condition When? I tried When condition of:


    higherlevelforms._mysubform. Count > 1


    This causes all subforms start on a new page, but how do I add "except for the first instance of mysubform" on the condition that the first instance of mysubform does not start a new page?


    Thank you.

    All I had to do was test for this.index:

    higherlevelforms._mysubform. Count > 1 & this.index > 0

  • Record of. PDF with repeatable subforms adds a new Instance.

    Hey everybody,

    I have worked with dynamic forms LiveCycle Desinger for a few years now, and this is the first time I see this kind of behavior.

    I have a very big form in LiveCycle Designer. There or 50 subform repeatable sections. I save the designer, and then open it in Adobe Acrobat X Pro. Acrobat Pro, whenever I have re-record it then re-open, a new instance is added to each subform repeatable.

    If I fill it, save it, and then reopen it, he has all my info, as well as a subfrom empty additional below each section.

    I have no formcalc in the presave, nor do I have any global fields in my form... In addition, each single repeatable subform named. I am at a loss.

    I have a sample of this pdf here. If you have a different file hosting site you prefer, do let me know.

    I'd appreciate any help anyone could offer. I don't know what is the cause.

    -Scott

    Hello again everyone,

    I found the answer to my problem. I had a devil of a time from Googling the problem, so I'll put some sentences that I tried below, where like-minded individuals has a similar problem.

    The main problem was with data binding. I had left the data binding for all as the default 'using the name (...) '. I was under the impression that as long as the sibling elements have been appointed to the same thing, there is a conflict. I was wrong.

    In my form, I used static subforms to organize the fields available in a dynamic repeatable subform. The static subform called "sf_positioning". It happens that this field has an uncle named the same thing. It was close enough to provoke a conflict, making the repeatable subform record an additional instance whenever the data has been saved. This can be corrected in one of two directions... ((1) set one of the subforms wrongful use "no data binding" (use this only if the content of the subform is not be exported or merged) or 2) give the subforms of unique names.

    I need to look if everything must be particularly well appointed... As I said, it makes more sense to me that the only restriction should have been on the sibling elements, but I will in the future to make sure there are at least three degrees of separation between just like named controls/subforms.

    Hope that helps someone else...

    And what follows is some of my attempts at Googling the problem. I hope that this will facilitate the solution to find for others:

    -Player which extends shape Dynamics breeze repeating subforms.

    -Economy adds a new instance of the repeatable subform.

    -Whenever I save, I get more empty instances of a subform repeatable.

    -Repeatable subforms not working does not go as planned.

  • Repeating subforms after the application of usage rights

    Hi guys,.

    I was going crazy trying to get this problem solved in recent weeks. No unfortunately I cannot post the PDF because of privacy issues, but I hope you might be able to point me in the right direction for what could be causing the problem.

    The problem

    We lack a problem once the LiveCycle PDF is opened in Acrobat Pro and enabled usage rights. Once save us the PDF file, then open, Extensible subforms start behaves badly. By example, when we re - open this document, rather than the subform with 1 instance (as it should be by default), it opens with several instances of 2, 3, 6, or 20).

    This problem occurs only one time use rights have been activated on the document, and it's always the same number of instances is repeated.

    Details of the document

    The PDF document was created in Indesign and then imported into LiveCycle to apply interactivity. There are a total of 17 pages

    There are several subforms in the entire file on the different pages. Each of these subforms has a button below them which allows the user to add additional instances of the subform (using the built-in script that generates LiveCycle). Each subform has a minimum number of limit 1 and maximum 20. The "original" counter has been set to 1, but it seems that LiveCycle removes this value if it is the same as the minimum number.

    This document does not tie into any database. It is simply an interactive document that allows users to show/hide the pages based on the boxes they check on the first page (some page visibility changes). The idea being, the customer can save the form once they have filled in the required fields, and then send it back, so recording feature is necessary (this is why we need the rights to use).

    What I've tried so far

    I did a lot of reading on the subject, and I've seen mention of people with non-unique names subforms or empty subforms may cause the problem. I checked the document and subforms all have a unique name and there is no form under vacuum.

    As a way to try to identify what elements might be the cause of the issue, I've resorted to deleting several pages of the document to track a specific item which could be causing the problem, however, I didn't have much luck with this. The removal of most of the pages other than the unique repeating subform has resulted in the subform repeat 6 to 8 times (don't remember exactly, but it's already repeated 20 times)

    Any ideas?

    I know it's a bit difficult without being able to see the document directly, but I hope someone might have a suggestion for what I can remember. Is it just screwing things up usage rights, or is potentially something in my code which comes into conflict with the rights of use. The thing I find most confusing on this scenario is the seemingly random to see how many instances. The first subform before loads the available maximum limit, but the rest of the forms more load with only 2 instances (when they also have a maximum limit of 20 pieces).

    I have read a few forums where people suggested Reader Extensions, but according to Adobe system requirements, it does not correspond to what we are trying to reach. There is no database interaction at all - we demand that the ability of users to save the PDF locally.

    If anyone can offer any suggestions for where I might need to look at the issue, I would be very grateful. Thank you!

    Hello

    Your description of the problem is very detailed. Send me a private message if it is possible to send the form to a person instead of posting publicly.

    Here's a thread repeating subforms that can help: registration complete form duplicates subforms I used a line of script console.println to try to help identify the problem.

    I try and minimize the number of subforms flowed and don't use them only where they are required for the content of this subform. In all other cases, use positioned subforms.

    Minimum number serves only one purpose when you have a button that allows you to remove instances. Minimum number of 1 means that the user can delete instances, but not the last remaining instance. Unless you need to, you could take this.

    I don't think that the problem is because the form is activated. There must be something else in the background.

    Try to open the Javascript Console in Acrobat/Reader (by pressing command + J) and see if errors and warnings. Also, put in a console.println script to display the nodes in the console.

    Good luck

    Niall

  • dynamic changes to decimal or text fill color box

    I already asked a question on how to programmatically change the background color of just the object checkbox box.  The code (which was working fine) was:

    xfa.resolveNode("form1.page1.cb.ui.#checkButton.border.fill.color").value = "255,255,0;

    Now, I need to do something similar for other types of objects.  In particular, I need to change the color of a decimal field and a text field.  I tried to find similar tags in the XML source that could give me some advice.  I tried the following (based on my review of XML) for the decimal field, but it did not work:

    xfa.resolveNode("form1.page1.cb.ui.#numericEdit.border.fill.color").value = "255,255,0;

    and

    xfa.resolveNode("form1.page1.cb.#numericEdit.border.fill.color").value = "255,255,0;

    No indication on how I'd change for the decimal and text fields?

    Thank you
    Emily

    Hi Emily,.

    You are on the right track. Check the XML source will highlight the syntax to access this property.

    Over time, I adapted the script to include collecting the SOM of the object and use it in the script. This way if the name of the object (or the name of the subform) is changed, so the script still works. The only thing you need to change is the reference of the user interface based on the object type.

    The numericEdit will work on decimal objects and textEdit will work on text fields.

    var vName = this.somExpression;
    var fieldObj = xfa.resolveNode(vName + ".ui.#textEdit.border.fill.color");
    fieldObj.value = "255,255,255"; // white
    
    /* Check the type of object and change the .ui reference:
         Date field =      #dateTimeEdit
         Dropdown =      #choiceList
         Checkbox =      #checkButton
         Text field =      #textEdit
         Numeric field =     #numericEdit
    */ 
    
    Good luck,
    
    Niall 
    

Maybe you are looking for

  • QuickTime in El Capitan does not properly

    It crashes. Then a needis to stop the file and playback. Earlier, he had no problem

  • Satellite A100 stops unexpectedly

    For awhile, I had a problem with my laptop A100. Well, I said for some time, but the first occurrence was a week ago and it was held four times in a row today. What is happening is that even if I have the laptop that works next to my desk, he simply

  • Satellite A50 543: Questions about upgrading the HARD drive

    I'm looking to upgrade the internal hard disk on my A50 543 to 100 GB at 7200 RPM. The original drive is a Fujitsu 60GM 4200. I have found no information on the Internet on other readers line CMS that have been tested and found compatible with the A5

  • Excel hyperlink to a sheet in the same workbook

    Hi allI ' LD like to insert a hyperlink in a worksheet that Datasheet link for 1 (or whatever) in my workbook.I have to make a link that point to other xlsx file, but I don't know what to write in the field "Address" of the property of hyperlinks...C

  • ePrint HP7510 e 311 a

    Hello I have a HP7510e printer, I want to implement for eprinting. I had the printer works now for a few months, not without issues connect to my netwaork all about. Suffice it to say, it is now connected via a static IP, but still gives me time to o