Create focus on the custom edit field?

There's my code to see the login screen...
I want to create special border editfield when he onFocus? so people place now developed...

public LoginScreen()
    {
        super( NO_VERTICAL_SCROLL | USE_ALL_HEIGHT | USE_ALL_WIDTH );
        this.getMainManager().setBackground(BackgroundFactory.createLinearGradientBackground(0x0099CCFF,
                0x0099CCFF,0x009933FF,0x009933FF) );

        Bitmap logoEcc = Bitmap.getBitmapResource("ecc.png");           //call image
        BitmapField logo = new BitmapField(logoEcc,Field.FIELD_LEFT);               //make logo side left
        hfm = new HorizontalFieldManager(Field.USE_ALL_WIDTH)           //new horizontalmanager with All Width
        {
            protected void paint(Graphics graphics)
            {
                graphics.setBackgroundColor(Color.BLACK);
                graphics.clear();
                super.paint(graphics);
            }
        };
        hfm.add(logo);
        add(hfm);
        add(new SeparatorField());

        username = new LabelField("Username", Field.FIELD_LEFT);
        add(username);

        usernameEdit = new EditField (Field.USE_ALL_WIDTH)
        {
            protected void paint(Graphics g)
            {

            XYEdges padding = new XYEdges(3, 3, 3, 3);
            int color = Color.BLACK;
            int lineStyle = Border.STYLE_SOLID;
            Border roundedBorder2 = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            usernameEdit.setBorder(roundedBorder2);
        //  g.setBackgroundColor(Color.WHITESMOKE);
            g.clear();
            super.paint(g);
        }
        };
        add(usernameEdit);

        password = new LabelField("Password", Field.FIELD_LEFT);
        add(password);

        passwordEdit = new PasswordEditField ()
        {
            protected void paint(Graphics g)
            {
                //g.setBackgroundColor(Color.WHITESMOKE);
                g.clear();
                super.paint(g);
                XYEdges padding = new XYEdges(3, 3, 3, 3);
                int color = Color.BLACK;
                int lineStyle = Border.STYLE_SOLID;
                Border roundedBorder2 = BorderFactory.createRoundedBorder(padding, color, lineStyle);
                passwordEdit.setBorder(roundedBorder2);
            }
        };
        add(passwordEdit);

        add(new SeparatorField());

        login = new ButtonField("Login",Field.FIELD_HCENTER);
        login.setChangeListener(this);
        add(login);

any solution? Thank you...

Hello

EditField ed = new EditField(){protected void drawFocus(Graphics f, boolean value)
{              graphics.setColor(Color.BLUE);                 int width = getPreferredWidth();                 int height = getPreferredHeight();                 //Draw a border around the field.                 graphics.fillRect(0, 0, 3, height); //Left border                 graphics.fillRect(0, 0, width, 3); //Top border                 graphics.fillRect(width-3, 0, 3, height); //Right border                 graphics.fillRect(0, height-3, width, 3); //Bottom border

}};


Write like this...

Tags: BlackBerry Developers

Similar Questions

  • Custom edit field - not drawing while typing of the text

    I created a custom edit field (code below), but there is no slider or text drawn while typing.

    The text appears if you click another field on the screen, but not while typing. I guess it has something to do with my method of painting, but I don't know?

    Tips for making more effective methos painting would be a bonus!

    Thank you!

    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.component.EditField;
    
    public class CustomTextField2 extends EditField {
    
        private int fieldWidth;
        private int fieldHeight;
        private int button_colour = 0xF9F9F9;
        private int text_colour = 0x666666;
        private int border_color = 0xCCCCCC;
        private Graphics graphics = null;
        public CustomTextField2(long arg0) {
            super(arg0);
            fieldWidth = Display.getWidth()-100;
            //int off = 8;
            FontFamily fFam = null;
    
            try {
                fFam = FontFamily.forName("SomeFontHere");
            }
            catch (ClassNotFoundException e) {
                e.printStackTrace();
            }  
    
            Font font = fFam.getFont(Font.PLAIN, 20);
    
            Font defaultFont = font;
            int off = 8;
            fieldHeight = defaultFont.getHeight() + off + 10;
            this.setPadding(5, 20, 5, 20);  }
    
        protected void paint(Graphics graphics) {
    
            graphics.setColor(button_colour);
            graphics.fillRect(0, 0, fieldWidth, fieldHeight);
            graphics.setColor(border_color);
            graphics.drawRect(0, 0, fieldWidth, fieldHeight);
            graphics.setColor(text_colour);
            graphics.drawText(this.getText(),20,10/2);               super.paint(this.graphics);
        }
    
        protected void onFocus(int direction) {
    
            button_colour = 0xF9F9F9;
            text_colour = 0x666666;
            border_color = 0x3598CC;
            this.invalidate();
        }
    
        protected void onUnfocus() {
    
            button_colour = 0xF9F9F9;
            text_colour = 0x666666;
            border_color = 0xCCCCCC;
            this.invalidate();
        }
    
        protected void drawFocus(Graphics graphics, boolean on) {
    
              super.drawFocus(graphics, on);
        }
    
        protected void fieldChangeNotify(int context)
        {
            try {
    
            this.getChangeListener().fieldChanged(this, context);
    
            }
            catch (Exception e){
    
            }
        }
    
        public int getPreferredHeight() {
    
            return fieldHeight;
        }
    
        public int getPreferredWidth() {
    
            return fieldWidth;
        }
    
        protected void layout(int arg0, int arg1) {
    
            setExtent(getPreferredWidth(), getPreferredHeight());
        }
    }
    

    I just posted a code in another thread - he does most, if not all, of what you want. Take a look:

    Custom elegant EditField (textbox)

  • view the json data in the custom list field

    Hi, I did analysis json and I created the custom list field. Now, I want to display only the data analyzed in my custom list field. I'll post my analyzed data from json and here is the code for my custom list field
    data analyzed.
    I have THREE channels of json and I want to show content tittle and date in the list filed. I'll post the screenshot of my list.

    JSONArray jsnarry = new JSONArray(responce);
                System.out.println("\n--length----- "+jsnarry.length());
                //System.out.println("....................................................=");
                for (int i = 0; i < jsnarry.length(); i++){
    
                    JSONArray inerarray = jsnarry.getJSONArray(i);
                        //System.out.println("\n-inerarray-values----- "+inerarray.getString(i1));
                        String TITTLE = inerarray.getString(1);
                        String CONTENT = inerarray.getString(2);
                        String DATE = inerarray.getString(3);
                                                           System.out.println("TITTLE= "+TITTLE);
                        System.out.println("CONTENT= "+CONTENT);
                        System.out.println("DATE= "+DATE);
    
    }
    

    output

    [0.0] --length----- 2
    [0.0]
    [0.0] -innerarray-length----- 6
    
    [0.0] TITTLE= BJP State President Sanjay Tandon's visit to Amita Shukla's Home
    [0.0] CONTENT=  BJP President Chandigarh Sanjay Tandon at Amita Shukla's Home
    [0.0] DATE= 2013-01-04
    [0.0] ................................................
    [0.0] TITTLE= Sanjay Tandon at mahasamadhi of Satya Shri Sai baba.
    [0.0] CONTENT= BJP Chandigarh President, Sanjay Tandon mahasmadhi of Sri Satya Sai Baba.(Andhra Pradesh)
    [0.0] DATE= 2013-01-13
    

    and my custom list field

           super(NO_VERTICAL_SCROLL);
    
             String TITTLE="TITTLE";
             String CONTENT = "CONTENT";
             String DATE = "DATE";
    
             v.addElement(new ListRander(listThumb, TITTLE, CONTENT,DATE, navBar));
    
             myListView = new CustomListField(v){
    
                 protected boolean navigationClick(int status, int time) {
                     //Dialog.alert(" time in milisec :" + time);
                     return true;
                 }
             };
    

    CustomListField.java

    public class CustomListField extends ListField implements ListFieldCallback {
    
        private Vector _listData;
        private int _MAX_ROW_HEIGHT = 100;
    
        public CustomListField (Vector data) {
    
            _listData = data;
            setSize(_listData.size());
            setSearchable(true);
            setCallback(this);
            setRowHeight(_MAX_ROW_HEIGHT);
    
        }
    
        public int moveFocus (int amount, int status, int time) {
    
            this.invalidate(this.getSelectedIndex());
            return super.moveFocus(amount, status, time);
    
        }
    
        public void onFocus (int direction) {
    
            super.onFocus(direction);
    
        }
    
        protected void onUnFocus () {
    
            this.invalidate(this.getSelectedIndex());
    
        }
    
        public void refresh () {
    
            this.getManager().invalidate();
    
        }
    
        public void drawListRow (ListField listField, Graphics graphics, int index, int y, int w) {
    
            ListRander listRander = (ListRander)_listData.elementAt(index);
            graphics.setGlobalAlpha(255);
            graphics.setFont(Font.getDefault().getFontFamily().getFont(Font.PLAIN, 24));
            final int margin =5;
    
            final Bitmap thumb= listRander.getListThumb();
            final String listHeading = listRander.getListTitle();
            final String listDesc= listRander.getListDesc();
            final String listDesc2= listRander.getListDesc2();
            final Bitmap nevBar = listRander.getNavBar();
    
            //list border
            graphics.setColor(Color.BLACK);
            graphics.drawRect(0, y, w, _MAX_ROW_HEIGHT);
    
            graphics.drawBitmap(margin, y+margin+10, thumb.getWidth(), thumb.getHeight(), thumb, 0, 0);
    
            graphics.drawText(listHeading, 3*margin+thumb.getWidth(), y+margin);
            graphics.setColor(Color.BLACK);
    
            graphics.drawText(listDesc, 3*margin+thumb.getWidth(), y+ margin+30);
            graphics.drawText(listDesc2, 3*margin+thumb.getWidth(), y+ margin+60);
    
        }
    
        public Object get(ListField listField, int index) {
    
            String rowString = (String) _listData.elementAt(index);
            return rowString;
    
        }
    
        public int indexOfList (ListField listField, String prefix, int start) {
    
            for (Enumeration e = _listData.elements(); e.hasMoreElements(); ) {
    
                String rowString = (String) e.nextElement();
                if (rowString.startsWith(prefix)) {
    
                    return _listData.indexOf(rowString);
    
                }
    
            }
    
            return 0;
    
        }
    
        public int getPreferredWidth(ListField listField) {
    
            return 3 * listField.getRowHeight();
    
        }
    
    }
    

    Listrander.Java

    public class ListRander {}

    private bitmap listThumb = null;
    incognito bar Bitmap = null;
    private String listTitle = null;
    private String listDesc = null;
    private String listDesc2 = null;

    public ListRander (Bitmap listThumb, String listTitle, String listDesc, String listDesc2, Bitmap navBar) {}
    this.listDesc = listDesc;
    this.listDesc2 = listDesc2;
    this.listThumb = listThumb;
    this.listTitle = listTitle;
    this.navBar = bar navigation;
    }
    public getListThumb() {Bitmap image
    Return listThumb;
    }
    {} public void setListThumb (listThumb Bitmap)
    this.listThumb = listThumb;
    }
    public getNavBar() {Bitmap image
    return the navigation bar;
    }
    {} public void setNavBar (navigation bar of the Bitmap)
    this.navBar = bar navigation;
    }
    public String getListTitle() {}
    Return listTitle;
    }
    {} public void setListTitle (String listTitle)
    this.listTitle = listTitle;
    }
    public String getListDesc() {}
    Return listDesc;
    }
    {} public void setListDesc (String listDesc)
    this.listDesc = listDesc;
    }
    public String getListDesc2() {}
    Return listDesc2;
    }
    public void setListDesc2 (String listDesc2) {}
    this.listDesc2 = listDesc2;
    }
    }

    You seem to have two problems here and are confusing them.  You must break the problem into two parts

    (1) extract the data from the entry and create the objects you want to display

    2) display in a list, a set of objects.

    Let's get the sorted first premiera.

    I will suggest what to do here, but in practice, you might actually think about this yourself as part of the design phase of your application.  You should do this, not me, because then you will have all the information available.  At the present time, I have just what you said, which is not much.  So maybe what I'm telling you is not correct for your application.  Only you can decide that.  And be blunt here, you should have decided this before you start coding.  Do you want you could lead down the wrong path.  You must think of your application as a home - as the architect must design all the rooms, and how they will be built, before you start building the House.  You do not, then we are building the rooms on the fly.  Who knows if they will be fit at home?

    In this case, I think you need to create an object that represents each of the elements in the internal array of new data.  call this object

    NewsItem

    This object will have attributes, such as its title, content, date, the linked image and so on, each of whom have will get and set methods.  While you treat each inner element fetch you the associated entry and update the object.

    When you have finished the inner loop of processing, you now have a complete

    NewsItem

    Object, so you will add it to a collection, an array of NewsItem objects, call this _newsItems.  You will create it at the beginning - you know how many entries it takes because it is the number of entries in your outdoor table.

    So before you start to deal with JSON, create your table and the 'index' value of 0.

    Once you have created your Newsitem, add this in the table to the position 'index' and increment "index".

    And once you have analyzed all the JSON, you will have a complete picture.  This is part 1 finished!

    And note in your drawListRow, you are given a clue - that is the index in your tables in _newsItems.  So you can easily find which entry to view and display it correctly.  But it is part 2 and is a separate issue.

  • The location of the custom metadata fields

    I'm trying to locate the custom metadata fields. Consider a custom metadata field where his dname = xPracticeWork and dCaption = practical work.

    I am trying to locate it using the old way.

    When to activate the settings regional french user and see this metadata field appears in English.When I turn on the location in the information system Audit, it is said

    unable to find string 'fr.Practice Work'

    So I tried including < @fr. The practice of work =Work practice@ >

    but he throws and error message saying unknown resource definition tag

    If I do the dCaption as PracticeWork and try to < @fr. PracticeWork =Work practice@ > it works absolutely well.

    It seems that the practical work being two letter word definition tag allows no space.

    Can someone please help me on this.


    Thank you

    Vanina

    It's very simple, you write a string that you want to display in the form of legend (I use this trick in the profiles, if I want to rename a metadata custom field exist for the type having a different meaning), or write you a string Id cannot contain spaces, which solved somewhere, usually a custom - component see what thread change location String for details how to create a resource exploitation translations.

  • dynamically create and destroy the custom menu item

    I have a standard TestStand platform that I use on multiple systems.  On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration.  I know how to manually create these menu items, but they are no longer valid for some sequence files.  I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.

    I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items.  Does anyone know how this can be done?

    Thank you

    Matthew

    Yes, see the online help for the members of the following APIs:

    Engine.GetEditTimeToolMenuItems

    EditTimeMenuItems

    EditTimeMenuItem

    Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.

    In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.

    Hope this helps,

    -Doug

  • Cannot focus on the custom itemRenderer?

    I made a custom itemRenderer double as an itemEditor following the instructions in the documentation.
    However, even if I put the rendererIsEditor = "true", when tabbing between other editable fields, controls within the itemRenderer do not receive focus. I can't help thinking it of a control/bug, but is it possible to submeter the itemRenderer to focus properly? At the moment my component is simply a box inside an HBox.

    Anyway, here is my code so that you can see for yourself (I have included a checkbox as itemRenderer so that you can see the * desired * effect.)

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:Script >
    <! [CDATA]
    Import mx.controls.dataGridClasses.DataGridListData;
    Import mx.controls.Alert;
    [Bindable]
    public var dp:Array = [{num:2, bool:true}, {num:3, bool:false}];
    []] >
    < / mx:Script >
    < mx:DataGrid id = "test" editable = "true" dataProvider = "{dp}" >
    < mx:columns >

    < mx:DataGridColumn dataField = "num" headerText = "num" / >
    < mx:DataGridColumn dataField = "bool".
    headerText = "sent".
    itemRenderer = "mx.controls.CheckBox"
    rendererIsEditor = "true" editorDataField = "selected" / >

    < mx:DataGridColumn dataField = "num" headerText = "num" editable = "true" / >
    < mx:DataGridColumn dataField = "bool" headerText = "Sent" rendererIsEditor = "true" editorDataField = "blorch" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox horizontalAlign = "center" >
    < mx:Boolean id = "blorch" / >
    "< mx:CheckBox id = 'check' selected =" {data.bool} "change =" blorch = check.selected "/ >
    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >
    < mx:DataGridColumn dataField = "num" headerText = "num" editable = "true" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Application >

    Too bad... I found the answer to a few pages later in the docs...
    You must implement the IFocusManagerComponent interface and then substitute drawFocus as below to set the focus to the checkbox... hope it works for multiple controls.



    override public function drawFocus(focused:Boolean):void {}
    check.setFocus ();
    }
    ]]>



  • Someone removed the custom attributes field

    Is it possible that PowerCLI can fire an event if someone removed the field of the custom in vCenter attributes?  I take more precisely on the class in Administration > custom attributes in vSphere client 5.x.  For some reason a field that he had to show VM assignments is missing, and I'll try to find what happened to her.

    Course, use the CustomFieldRemovedEvent.

    You can use the Get-VIEvent or my Get-VIEventPlus cmdlet to retrieve the events.

    BTW use my Event-O-Matic to easily find event names.

    Special Edition, it will still generate code to extract the events

  • FOCUS ON THE CUSTOM LIST

    I created a CustomListManger of extemding VerticalFieldManager. for lines, I created a CustomRow Manager by extending Mnager.

    When I display the list, I am not able to focus on the CustomRowManager I added. Focusable property is enabled for the CustomRowManager and the CustomListManger.

    Any help is welcome!

    I used the thread below to solve the solution:

    http://supportforums.BlackBerry.com/T5/Java-development/help-focus-on-managers/TD-p/1240859

  • Creating folders in the custom display of calculation Manager

    So, in accordance with the documentation here:

    http://docs.Oracle.com/CD/E57185_01/EPM.1112/calc_manager_help.PDF

    page 29 says I can go to the custom view and create folders on any type of application. When I try this for Essbase application, the ability to create the file is not there.

    Can anyone confirm this on 11.1.2.4? Or is that something only applicable for applications of EPMA?

    Works in 11.1.2.4

    See you soon

    John

  • Creating layers of the multiline edittext fields multiline text questions

    Hi all

    I wrote a script that accepts a user input and puts in the part layerName.textItem.contents to a text layer, code example below.

    var docRef = app.activeDocument;
    var win = new Window("dialog", "Hello world");
    var input = win.add("edittext", [0,0,400,40], "", {multiline:true, wantReturn:true});
    input.active = true;
    var go = win.add("button", undefined, "Go");
    
    function makeText() {
         var myText = docRef.artLayers.add();
         myText.kind = LayerKind.TEXT;
         var ref = myText.textItem;
         ref.kind = TextType.POINTTEXT;
         ref.size = 50;
         ref.contents = input.text.replace(/\\n/g,'\r');
         win.close();
    }
    go.onClick = function() {
        docRef.suspendHistory("text", "makeText()");
    }
    
    win.show();
    

    However, simply using entry for a new line in the input box produces unexpected results:

    Screen Shot 2016-09-04 at 01.42.38.png

    Curiously, the symbol of the copy and paste elsewhere show that it is a new line character, it is simply not recognized by Photoshop.

    By setting wantReturn to false and adding a keypress eventListener:

    win.addEventListener("keydown", function(kd) {pressed(kd)});
    function pressed(k) {
        if (k.keyName == "Enter") {
            input.text += "\\n";
        }
    }
    

    I am able to get a new line correct, although each press of Enter brings the cursor at the beginning entry field, forcing the user to manually move the cursor at the end before you can continue typing. This too (of course, I guess) puts a visible "\n" in the input field.

    Is there a solution that, at least, can prevent the cursor jumps at the beginning whenever you press Enter? Ideally the end user would not see "\n" in the input field at all, but rather a new visible line in the input field which translates a new visible line in the text layer.

    I'm under CS6 on OSX but will mainly use the script from Windows, also CS6.

    Thanks to all who can help.

    Change line 13 for your regex to:

    REF.contents = input.text.replace(/\n/g,'\r');

  • Move the focus of the custom button

    Hello

    My button did to paint two differrent bitmap:

    Paint (Graphics g)

    {

    g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS)? FOCUS: NORMAL;

    g.drawBitmap (0, 0, getPreferredWidth(), getPreferredHeight(), _bitmaps [index], 0, 0);

    ...

    }

    How do I call it g.setDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS, false) to navigationUnclick (State of the int, int hour). To make the button unfocus after a click.

    removeFocus() didn't work?

    clues will be a great help.

    This will work as long as the button is focused. You can add a custom boolean to change the drawing, or move the focus to another field.

  • Set the focus on the phone number field when validation fails

    Hello

    I have a text field set up like a field of phone number, with the following text in the change event to accept only numbers:

    if(xfa.event.newText.match(/[^0-9]/)){
    xfa.event.change = "";
    }
    

    The validation of the model, I have this mask on all tabs (display, editing, Validation and data):

    Text {'('999') ' 999-9999}

    I want the user to be able to just enter numbers and have the parentheses and added automatically dash ["123-456-7890"].


    How the focus to stay on the field when it is not validated? (e.g., insufficient or too many digits).  I have looked at validationState , but couldn't find out how to use it (I am a javascripter noob).

    Thanks for any help.

    in the case of output of your domain:

    if (this.rawValue.length !=9) xfa.host.setFocus(this);
    
  • How to manage the focus in the custom component

    Hallo. As you know some flex components have indigenous focus, like buttons, textinput, etc... I created a custom component which is a borderContainer... As you know, by default, if the user press TAB my BorderContainer will never receive the focus... I tryied to set a property as setFocus() and tabFobusEnabled to true, but I still have some problems with my borderContainer development... It's as if my app knows that my custom component is not a native component... Is there a way for my component to receive focus without problems?... Which is the best way to do this?

    Thx a lot

    Max

    Components must implement IFocusManagerComponent in order to receive the focus.

  • How can you change the name of the custom form fields?

    I made a form that required me to add a few custom fields.  When the form sends an email, custom fields appear as "Custom".  I need them to say what is the form field.  Can we achieve this by Muse?

    I tried to change the name of the script in DreamWeaver, but it caused the form to fail.

    Any ideas would be great.

    Thank you.

    You are not able to just type the new name in and on "Custom" label above it and see it changed in your email automatically?

  • Please help me with the custom text field FormCalc

    There is someone online has done a very good thing for me - they helped me create a text field that would be of type 'this document has been printed on _' and include some day the pdf was printed on the employer's intranet site.

    I had a shortcut in my favorites and would click on it and place it on each new document that I needed on.

    Because the computer I was using suddenly fell down, can't get the details of how to set it up again. I have a pdf form that includes the box, but when I open it in LiveCycle, it's just empty.

    That's what I saved:

    < field h = mm "8,4935" name = "PrintedOn" w = "141,0398 mm" x = "-0,0001 mm" y = "0 mm" xmlns ="http://www.xfa.org/schema/xfa-template/2.5/" > ""
    < ui >
    < textEdit >
    < border hand = 'right' presence = "hidden" >
    <? templateDesigner styleId aped0? > < / border >
    < margin / >
    < / textEdit >
    < /UI >
    < police size = cast "18pt" = "Tahoma" weight = "bold" >
    < filling >
    < color value = "221,221,221" / >
    < / filling >
    < / make >
    < para hAlign = "center" vAlign = "middle" / >
    < link match = "none" / >
    < activity = "prePrint" ref = "$host" >
    < script >$ .rawValue = concat ("this document has been printed on:", num2date (date (), DateFmt (1))); < /script >
    < / event >
    < / field >

    I don't remember what to do to get this working.

    I use this text box "print on" ALL the time, and I need to know what to do to get back to work quickly.

    If there is someone who could help me, I could also send you a sample of a form which includes it - so you can see exactly what I mean.

    If someone could remember how to program this kind of thing in once again and save it in LiveCycle, then explain how I can put it on another computer so I'd really, REALLY appreciate it.

    ~ Chris

    PS - this one as I had put in place only prints print message per day on the first page. If she could somehow print on EACH page of the PDF file without me having to click and add it to each page individually, it would be better... but let's first!

    Hello

    The script is here. If you place a new textfield in the Master Page and put the following script in the event of pre-publication of the field:

    $ = concat("This document was printed on: ", num2date(date(), DateFmt(1)))
    

    The language is FormCalc.

    Please note that you don't need to go to the XML Source for this. Simply select the textfield object and open the Script Editor (in the Windows menu). Drag the bottom of the editor bar so that you can see a few lines, and then set the FormCalc language.

    Should work,

    Niall

Maybe you are looking for