Make the field on opening document readonly

I don't know where to put the Javascript code to do this.  There is a Document Javascripts I called a script 'Disable' and in this function, wrote: this.getField("myfield").readonly = true;

Then, I closed the document, it has reopened, and the field is NOT readonly.  How to make this work?

Thank you.

I thought about it.  Code should not reside inside a function so that it will run at startup.

Tags: Acrobat

Similar Questions

  • Web links open in a new tab or a new window, how to make the web link open in my current tab?

    I could find ways to do the reverse of this and make the links to open in new tabs, but none that answered this question

    It is difficult because the links in a page can work in several ways:

    • no attribute "target" - open in the same tab
    • the value of attribute 'target ':

      • "_blank" - open in a new tab
      • 'name1' (used before and currently open)-replace the page on the tab 'name1 '.
      • 'name2' (not used before or already closed) - open in a new tab
    • script attached to the link to override her normal behavior - a variety of outcomes are possible, including a whole new window

    You can try the settings of parameters in this old thread: https://support.mozilla.org/questions/985943

    Who do you want?

  • How to watch a document if I forgot the password to open document?

    How to watch a document if I forgot the password to open document?

    Ask for the password of the sender of the file. If this is you then you finally don't forget the password or re-create the document.

    Be well...

  • send me again the password to open documents

    Send me the password to open documents new

    I think contacting the wrong people. Adobe do not keep your document open passwords.

  • How to make the field as a table display only?

    A form on a table, I can do the display as field: "view only".

    In a tabular presentation, it doesn't seem to be the option "View only" view. In tabular form attributes, I set a default value, and I have no users to edit this field. So, how can we make the field only do "display"?

    V4.1

    You can change the definition of the column and change the Display as in "Display text (saved state)" attribute whose value will be the column will be saved with the other columns and the default way.

    Thank you
    -Jorge

  • Make the date picker opened when the user navigates to the date field

    Hi people.

    Anyone know if it's possible to make a date picker open as soon as a user clicks or tabs on a date field?

    Answers on a postcard / response received with gratitude.

    Kind regards

    Simon Gadd

    Hi Simon,.

    I think I have the answer now.

    In your area header area, add in the following:

    <script type="text/javascript">
    var ok = 1;
    function showDatepicker()
    {
     if (ok == 1)
     {
      ok = 0;
      document.getElementById('P5_DATE_IMG').click();
     }
    }
    function resetDatepicker()
    {
     ok = 1;
    }
    </script>
    

    and as attributes of the element Form HTML of the element of your date, add in:

    onfocus="javascript:showDatepicker();" onblur="javascript:resetDatepicker();"
    

    This means that your article is called P5_DATE - change according to the case.

    Andy

  • make the field looks like a gray field "ReadOnly".

    Hello

    Hey anybdy please help me regarding my business requirement is
    1. in the activities I do the subject field as read only IE not edit/change when the status field is 'done '.

    2. how culd I do the above subject field resembles a 'read only' in the grey field and pop - up of Validation must be disalbed.


    I did the 1st task bt needed help in task 2.

    Help, please.

    Thank you and best regards,

    Asif

    Subject is one of the required fields on the Activity object, so you can't make it read-only. What you can do is ' apply restrictions (through field validations / before the modified workflow) on the field object and make sure that the subject is not changed for the completed activities.

    You can't have the subject field to appear in gray.

  • Can I make the fields that I created in Acrobat Pro MS justified downtown?

    Hi everyone it should be so simple but really hitting my head. I try to get the fields that I created in Acrobat Pro ms to center then justify text when user types it is the Center not on the left side. I can set the size of text and other but cannot find how to make the above... Thank you

    Yes, it can be done. Go to the properties of the field and under the Options box tick the box 'Allow Rich Text Formatting'.

    Leave the form editing mode, click the field and press Ctrl + E. This will open the properties bar where you can set several formatting options for text, including to set it as "align justified."

  • Make the fields within a focusable VerticalFieldManager

    This should be rather trivial, but I can't get fields inside a verticalfieldmanager accept and behave focusable and allow the cursor movement is visible.

    I have a popupscreen. He has created with a verticalfieldmanager (code to follow).

    Inside that I need another manager of vertical field so I can view a list of fields in a section with scrolling and always allowed to display items at the top or at the bottom of the context menu without being invaded by the central list.

    After having none of the fields in the list has the focus.

    The environment is JRE4.5 + 8300 on the Simulator.

    Appreciate any comment. /Jeff

    Code for popup:

    public static class ScrollingPopup extends PopupScreen {}
    VerticalFieldManager innerFieldManager;

    public ScrollingPopup() {}
    Super (new VerticalFieldManager());
    innerFieldManager = new VerticalFieldManager (VerticalFieldManager.FOCUSABLE |) VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR) {}
    protected void sublayout (int maxWidth, maxHeight int) {}
    int newHeight = (int) (Display.getHeight () * 0.5);
    Super.sublayout (maxWidth, newHeight);
    setExtent (maxWidth, newHeight);
    }
    };
    I tried with a VerticalFieldManager default, but it made no difference
    innerFieldManager = new VerticalFieldManager (VerticalFieldManager.FOCUSABLE |) VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
    for (int i = 0; i)< 10;="" ++i)="">
    innerFieldManager.add (new LabelField ("item" + i));
    }
    Add (innerFieldManager);
    innerFieldManager.setFocus ();
    Add (new SeparatorField());
    Add (new LabelField ("label attached to the bottom"));
    super.onDisplay ();
    }
    }

    Sorry only looked at this briefly, but remember that the Blackberry does not focus on managers, he focuses on the fields.  It "scrolls" focusable field to the field focusable.  In this case, you add LabelFields loads, which are not, by default, the object of focus.  So I suggest you must make them active, or add some NullFields, that are focusable but no presence of the user interface.  I hope this helps.

  • MAKE THE FIELD TAB AUTO SHAPE

    So I have this PDF form with several fields. The form I'm working with is used as a record of vehicle sheet and the area concerned is the section of the vehicle identification number (VIN). A wine is 17 digits and I have 17 different fields limited to a number max of 1, what the problem is when I use a standard JavaScript code in the document

    function goNext (article, event, cName)

    {AFNumber_Keystroke (0, 0, 0, 0, "", TRUE);}

    If (event.rc & &)

    AFMergeChange (event) .length is event.target.

    charLimit)

    item.getField (cName) .setFocus ();

    }

    and in the properties of the field, I selected the tab format

    Custom format category

    Custom script from typo: goNext (this, event, "Vin2");

    My problem is I can use only numbers and if I try to use a normal wine as 1cg745bs743825167 he was going to let me use the letters. Also I'm trying to figure out how to click on the first form field for the first character of the wine, then press Ctrl + V to paste the WINE and it won't let me someone for directions on how to do these two things happen?

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    The AFNumber_Keystroke requires or allows only numeric values to be enterefd. The sample form has been to enter digital data like SSN.

    This approach has been used before 'comb' fields become available. You should be able to use a field of comb with a user writes the validation script and a charater of 17 characters limit.

  • How to make the fields from the drop-down list required to make a selection before you save a PDF file

    I have a PDF form where I entered a JAVA script in some areas by using the option ON BLUR under 'Actions' and it works very well to prevent users to go to another site if they leave the field with the empty JAVA Script in place.

    My question is that I have other form fields that have a drop down menu where they can choose several options. I would also like to make these fields to where they can't move forward on the form unless they choose an option in the list. However, because with the option in the list "choose a ' is a default option entered into the field (field is not empty), script JAVA of BLUR ON option I used in my empty fields does not work to block the user to move beyond the matter without selecting an option. They are able to save the form with all the drop down menus staying to 'pick '.

    I made the field "Required fields" then they are highlighted with the red area around, but is there another tool to force them to choose an option for each in the drop down menus before you save the form, instead of being able to save with leaving the 'choose One' in the field by default?

    The best way to do this without knowing the default value of the field is to compare the value of the field to the default value of the field... You must make sure that your default value is not part of the possible acceptable answer. It works with most of the field types that a user can fill.

    If (event.value! = event.defaultValue) {}

    do something;

    App.Alert ("required field not completed. \nField name: "+ event.target.name, 1, 0);

    }

  • How to make the field read udf only in IOM 10 g

    Hello

    Can we read only in IOM 10 g field of the udf. I couldn't see an option during the creation of the UDF. We can customize the formmeta to make the udf read-only?

    Thank you

    update in FormMetaData.xml

    find the formula 3 default for the form of the USR

    update below
    Editable = false

    Published by: Zaba Nayan on 8 February 2012 23:32

  • Make the field required using the Validation

    Hello

    I use R17 and want to make a field required by the adding validation [< field >] IS NOT NULL

    Strangely, this does not work on a new Record. a NULL value is always accepted. It only works for a modified record.

    has anyone in front of it too? or is this a BUG in my environment.

    Any ideas?

    Just to check if it works, I tried a [< field >] validation IS NULL and it worked correctly on New and updated records.

    Thank you
    Royston

    Hello

    There is a solution to achieve this. PL download the configuration steps of the below mentioned link.

    http://DL.dropbox.com/u/3971519/make%20A%20Field%20Required%20Using%20Advanced%20Field%20Management.doc

    Let me know if you have any questions.

    Rgds,
    Amit samir

  • How to make the field 'Description' biggest area? (3 to 4 lines in height compared to the present 1 line)

    I'm guessing that in CSS or HTML in the Editor of Landing Page I can do form field seems bigger than just the single line. Ideally, I would like to than the text about 3 to 4 rows height box.

    Please help me solve this problem! Means the simplest would be the best, but I'll take any answer at this stage.

    Thanks Topliners community!

    Figured out that you go to "Custom Fields" then hit paragraph box and replace the HTML name, as well as card in the stages of treatment, in the field "Description". PM me if you want more details and this has been a concern for you as well.

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   

Maybe you are looking for

  • 2011 Macbook Pro late since the SSD upgrade

    Hello world. Just a heads-up that is my first question. Also, I like to think I'm good with computers but I'm no computer programmer, so I will try to describe my problem the best I can. My friend (who does) has updated my macbook at the beginning of

  • Find the Total number of test time in SequentialModel.seq

    Hi everyone, I'm trying to figure out where in the SequentialModel.seq file I can pull the "main sequence duration Test total" when running in mode 'Test DUT' or 'Single Pass '.  In what subsequence find the "total duration of the Test" for a single

  • convert PDFS into a word document to change

    I have windows xp, word 2007, I want to convert a PDF document into a word document to change. My computer gives me the opportunity to open in word, but the text is garbled, unreadable. can you help me please? Thank you

  • KB2718704 guard tries to install but never does

    My PC keeps trying to install KB2718704. Anyone know what it is for? He tried to install several times, but never does.

  • Have you heard of and it is legitimate to Vista Security 2012

    My laptop which uses windows vista came with a security alert that I need Vista security registry 2012. Is - is this legitimate? I can't make it disappear.