Disable entire form

Hi,
I have a requirement to disable an entire form and make it read only based on item value, is there a way to do it?
Thanks,

Hi Samara,
Samara wrote:
I'm using APEX 4, do I need to install this jquery plugin?- You don't need to install anything, unzip the file and place the .js and .css file in web server images directory or upload to workspace static file under shared components
a) If you use server directory
<script type="text/javascript" src="/i/jquery.readonly.js"></script>
<link type="text/css" rel="stylesheet" href="/i/jquery.readonly.css">or
b) If you upload to workspace images directory
<script type="text/javascript" src="#APP_IMAGES#jquery.readonly.js"></script>
<link type="text/css" rel="stylesheet" href="#APP_IMAGES#jquery.readonly.css">
Samara wrote:Is this disabling items, buttons and links (i.e every thing)?- The code provided only disables items and buttons for disabling link take a look at the updated code:
http://apex.oracle.com/pls/apex/f?p=25471:2
function disableLink(e) {
    e.preventDefault();
    return false;
function readOnlyItem() {
    if ($v('P2_ITEM1') == 1) {
        $(':input').each(function () {
            $(this).readonly(true);
            $('#link1').bind('click', disableLink);
    } else {
        $(':input').readonly(false);
        $('#link1').unbind('click', disableLink);
    $('#P2_ITEM1').readonly(false);
    return false;
Samara wrote:Why I need to include it in page 0? can't be in the header?- I was referring to plugin files .js and .css they can be added in page 0 region or page template. I personally combine all custom js into one file, minify it and place it server. By placing plugin files in page 0 or template you can call your js/method in all pages. But, you can always place it in page header where you call the script.
Regards,
-Senthil

Similar Messages

  • How can I change the behavior of the Green Enter button when filling out a field in a form? Current it submits the entire form, I would like it to tab to the next field instead

    When using Firefox for Andriod:
    When filling out a field on a form, they keyboard has a Green Enter button that submits the entire form. However, there are multiple fields on the page, and I would like it to tab to the next field. At the very least not submit the form.
    Also, is there a way to configure the keyboard that shows up for each html5 input type?

    They keyboard that shows up has the large "Green Enter" go button, a backspace and some arrow keys, but no tab button.

  • FDF Returns the entire form not just user input

    Using the properties dialog box on a submit button I set my form actions to return 'FDF Include' which according to the help menu will only return the results of the user input and not the entire filled out form. I only want user input because I plan to embed each results file in a website.Unless I am misunderstanding what should happen, it is not working. It is returning the entire form.  I would appreciate any help or tips anyone has to offer. If I'm doing it wrong and there is another way, please let me know. I just want to see the answers in the form fields, not the entire form.  Thanks!
    http://help.adobe.com/en_US/acrobat/X/pro/using/WSBB6EF75F-BC3D-4094-B787-FB76DAE1EBDC.w.h tml

    Thanks so much for your assistance. I made a form, and then set the distrubuted settings to email me the form when submitted. I posted it to our intranet and then tested it. The form I posted is the 'distributed' form that Acrobat made from my original form. I posted it on a public site so you can have a look. Here is a link.  This should allow you to download it instantly. If not, remove everything from the question mark to the end and then paste that link into a browser. I checked and double checked everything, but maybe I am missing something.
    https://sites.google.com/site/ccpsgadgets/xml-documents/pbl%20form_distributed.pdf?attredi rects=0&d=1

  • ERROR: "You did not complete the entire form.  Please enter your country."

    When I tried to download a song tonight, I got a message that said that my billing info had changed and that I needed to verify it before I could purchase any music. On the "Edit Payment Information" page, I put in all of my info (my address was missing), and hit done. I get the error: "You did not complete the entire form. Please enter your country." Well, the country field is not editable, and but it says "United States," which is the right country. I can't get passed it, so I can't download anything. I'm running the latest version of iTunes... but I haven't purchased anything since.
    The other thing that concerns me is that I didn't change any billing info, so this is a bit strange. Does anyone have any ideas of what's going on? Thanks!!

    Just in case this ever happens to anyone else, here is how to fix the problem (THANKS, ITUNES SUPPORT)!!
    1) Sign out of the iTunes Store by choosing Sign Out from the Store menu in iTunes.
    2) Visit Apple's My Info website:
    http://myinfo.apple.com
    3) Choose your country and preferred language. Then enter your iTunes Store account name and password and click Continue.
    4) Choose Address Book from the menu on the left. On the Edit Address Book page, look at your shipping addresses at the bottom. If you have multiple shipping addresses, remove any out-of-date or duplicate addresses by clicking Delete. Also, make sure the state or province field is filled out correctly for each address. To edit an address, click Edit.
    5) Now choose Phone Numbers from the menu on the left to look at your phone numbers. The area codes should be in the area code fields and the phone numbers should be in the phone number fields. If an area code is missing, or if it is in a phone number field, your account information may not save properly.
    6) Make any other necessary corrections, then click the Save Changes button.
    7) Click Log out in the upper-right corner.
    When you make your next iTunes Store purchase, you will be asked to review your billing information. At that point, you can change your information or simply click Done. After that, you should be able to purchase items.

  • How to disable 6i forms

    Hi All,
    We have migrated from 6i to 11g forms and We are ready with 11g forms now.
    But all the users have 6i fmx in there standalone systems. I want them to use only 11g.
    Is there any way to disable 6i forms when any user try to open 6i forms it should not allow to use it.
    Thanks,
    Maddy

    Hi,
    Developers will access the Production DB in some case where they fix issue in the production.
    In forms created here, all the forms have code built in that prevents users from running out-of-date forms. They have a built-in version value that is updated with each new release, and when the form starts up, it compares its internal version number with that stored on the database. If the versions don't match, the form issues an error and will not display any data. With each new release, a script is provided for the systems people to run that updates the version numbers in the database. If they fail to compile, or fail to move the fmx to production, or any other problem occurs during installation, the forms will not run
    Steve, Can you explain me a bit clear the above suggestion? what is this built in version and how can I get the value of it?
    Thanks,
    Maddy

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Genius - You did not complete the entire form

    When I try to sign in to Genius with my Apple ID it gives me the message:
    You did not complete the entire form
    The only bit to fill in is the Apple ID. I tried using me.com but that didn't work either.

    pscurran wrote:
    Jeez I have survived such tricky stuff with this kit! I had the same problem here. I did'nt see it either and probably never would have! Thought that was AOL. Are Apple forms becoming more cryptic or I am becoming more stupid? I hope not, on both counts. Thank you. Paul
    No, it's been that way for years, ever since Apple & AOL agreed to let AOL members access the store from AOL.

  • Only invoking a ValueChangeListener if entire form is validated?

    By default, a ValueChangeListener will be invoked if the UIComponent it is attached to validates correctly (and the value has changed). Is there any way to invoke a ValueChangeListener only if the entire form validates? i.e. you are guaranteed the Update Models phase will follow.
    Thanks,
    Roger

    I also had this kind of excercise at a java course I'm currently on. It doesn't have any fancy stuff. First it checks the validity of date with switch case. I. e. if it is 1st, 3rd, 5th, 7th, 8th, 10th or 12th month and the date isn't more than 31 everything is in order. And so on...
    Then the 2nd month is a special case. First it checks if it's a leap year and if it is so it checks if the date is ok (i.e. not over 29). And if it isn't a leap year the date mustn't be over 28...
    Like this:
    static boolean onkoP?iv?ys(int p, int k, int v) {
              switch (k) {
                   case  1:
                   case  3:
                   case  5:
                   case  7:
                   case  8:
                   case 10:
                   case 12: if (p <= 31) return true;
                   case  4:
                   case  6:
                   case  9:
                   case 11: if (p <= 30) return true;
                   case  2: if (onkoKarkausvuosi(v) && p <= 29) return true;
                         else if (!onkoKarkausvuosi(v) && p < 29) return true;
                   default: return false;
         static boolean onkoKarkausvuosi(int v) {
              if (v % 4 == 0 && v % 100 != 0 || v % 400 == 0)
                   return true;
              return false;
         }p is day, k is month and v is year

  • If the javascripe is disable, the form would not submit

    Hi , I have a from, , collect some data and input into db, I want if the java script is disable, the form is on submit, or have other way to do the form validation?

    It's really hard to tell what your question is.
    If you're using struts, then the form beans can include validation, or you can specify validation in an external configuration file.
    If you're not using struts, I suppose you could do form validation outside of the servlet, say in a servlet filter, or in a different servlet that forwards to another servlet.
    It sounds like these would be basic questions. I strongly urge you to find a tutorial written in whatever your native language is.

  • Disable "Distribute Form"

    Relative newbie here, I have developed an interactive pdf form using LiveCycle Designer.
    When the form is opened in Acrobat, there is a purple bar at the top that says:
    "Please fill out the following form.  If you are a form author, choose Distribute Form in the Forms menu to send it to your recipients"
    This is a form which, when filled out, will have very confidential information in it and we would rather not have our inventors use this feature.
    1. Is there a way to completely disable Distribute Form from the menu?
    2. Alternatively, can I at least remove/hide this bar that directs them to go to the Forms/Distribute Form menu item?
    3. Would also like to disable the "Clear Form" menu item.
    4. On an unrelated note, when I use the app.menuExecItem("Save As");
    is there a way to include a default file name for the Save As?
    thanks in advance,
    Brian

    Sorry that this is late Brian.
    But I may have found a way to do it.
    In your orignal form, go to File, then Properties.
    Once there, select the Inital View Tab. After that in the UserInterface Options section click "Hide window controls"
    This will disable the "purple bar" completely. You will then need to re-save and re-open the file and voila.
    Edited to Add: Oh yeah, this is NOT an April Fools Joke - lol

  • Print, Save or Submit entire form

    I need to create a PDF form, have it filled out and either Printed, Saved or Submit the entire form. I can get the print part. I can not get Reader to save the file or email it. When you hit the Submit buttom, it says that it will send a data file, but not the form itself. It also says that you can not save the form in Acrobat 9 or higher. What am I doing wrong?

    I created the form in InDesign, saved it as a PDF and then created the fields. I saw a note that it can't be a PDF/A, so I resaved it and it still doesn't work. So frustrating - it should be easier to trouble shoot. I can't find where I can change the setting to allow a local save and can't get the email portion to work.

  • Disabling Field Disables the Entire Form

    I am trying to disable fields in the 'User Library.xml' form depending on who logs in; unfortunately the code below disables the whole form.
    Any pointers on how to get out of this logjam?
    <Field name='global.login_desc'>
    <Display class='Text'>
    <Property name='title' value='Login Description'/>
    </Display>
    <Disable>
    <eq>
    <block name="loggedinuseraccountid">
    <invoke name='getUser'>
    <rule name='EndUserRuleLibrary:getCallerSession'/>
    </invoke>
    </block>
    <s>Administrator</s>
    </eq>
    </Disable>
    </Field>

    A little javascript should do it.
    function switchForm(form,flag){
      inputs = form.elements;
      for(i=0;i<inputs.length;i++){
        inputs.disabled = flag;
    }No need to go to the server for this one.                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Having trouble disabling fields form in LiveCycle 8.1.2

    Hello,
    I have been working with live cycle for 3 weeks now and I need to edit a form to be dynamic so that a user can select a check box and certain fields are available depending on what's selected.
    ex: is user checks oper_bird than txt field oper_secur_id is available to be written in.
    I have set the fields to "readOnly" initially and I am now having problems with JavaScript to disable the fields.
    I have read the documentation on the differences between AcroJS and XFA and I am still confused. The form is set to dynamic and
    Heres the code I'm trying to get to work (I am using it on a radio button to enable or disable a txt field for testing):
    // Function to enable form fields
    function EnableField(cFieldName)
    // First acquire the field to be enabled
    //var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    //if(event.target.rawVaule == 1)//oFld)
    //{ // Next acquire the hidden field with the normal colors
    popup()
    //var oNmlFld = xfa.form.F.resolveNode("$..NormalColorsFld")
    //if(oNmlFld)
    //{ // Make field interactive
    $oFld.access = "open";
    // Restore Normal Colors
    $oFld.fillColor = oNmlFld.fillColor;
    $oFld.borderColor = oNmlFld.borderColor;
    $oFld.fontColor = oNmlFld.fontColor;
    // Function to disable form fields
    function DisableField(cFieldName)
    // First acquire the field to be disabled
    var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    if(oFld)
    { // Make field Read- Only
    oFld.access = "readOnly";
    // Set Grayed out colors
    oFld.fillColor = "192, 192, 192";
    oFld.borderColor = "171, 171, 171";
    oFld.fontColor = "125, 125, 125";
    I removed some of the conditionals to see if the events were happening. The code is in "Init" and the functions are called respectively in the "mouseUp" for "enable" and "disable"
    Thanks for the Help

    Okay, heres where the problem stands now:
    I disabled the fields, made them "readonly", however I can not reactivate the Fields to bring them back into a "User Entered - ..." value after setting them to "readonly". I know I am getting the calculation script to work because I am changing the colors of the field depending upon input.
    WorkflowUser could you you still want to take a look at the script? if you want to of course.
    Thanks again.

  • How to disable the form after i click a link in WAD

    Hi All,
    I have a WAD template where there are a lot of hyperlinks and buttons present to enable the control to go to same or different templates. What I want to achieve is once i click on a hyperlink, the whole form should get disabled so that I may not be able to click on any other link until the control goes to a different page. I tried using document.form.disabled = true which though gives the look and feel of the form as disabled after click of the link but still doesn't stop me to click other links.
    I also tried document.form.getElementById("Id").disabled = true for the links but still the same thing happens.
    The above commands work fine if i use them outside WAD, but don't seem to work in WAD.
    Any thoughts?
    Gaurav Jasoria

    Hi Friends,
    This is really urgent.Can you please suggest me a way out.
    Regards,
    Gaurav Jasoria

  • Disabling user form fields in Jsp..

    Hi I wrote a function to disable form fields for a resource.
    function disable(element){
        if(element != undefined){
            element.disabled = true;
            element.className="Fieldsdisabled";
            element.value="";
    when I call this method like  below , it disables textbox, textarea but not radio button field, Can anyone please help what mistake I am making.
    var element1=document.resourceObjectForm.elements["resourceFormData.parentFormData['UD_NY_'City_NAME]"];
                      disable(element1);  { This is a text field which gets disabled}
    SimilarlyTextarea, combo box gets disabled.
    But when I use it to Disable a radio Button  having two values like X,Y:
                      var element3=document.resourceObjectForm.elements["UD_NY_CITY"];
                      disable(element3); (This is radio button field}
    It is not disabling it.
    Can anybody tell what is the mistake here?

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

Maybe you are looking for

  • How to use scriptform print picture witch is stored in an add on table

    Hi    I created an add-on table,named zmoldpic,in the table,there is a field,named picdata,the field type is rawstring.    i stored some picture in this table,the picture type is JPG.   Now, i want to print this picture by using scriptform.Does anybo

  • Data not visible properly in PDF file

    Hi all, I am getting some data from a Smartform which is being converted into PDF. This PDF is sent in a mail to a team. Some of the PDF data is appearing differently for different users (say, for one the data is appearing as bold italics instead of

  • Too Much Space on the Page

    Why is there an extra three inches of space below the lowest object on my pages in preview (and published)? The depth is set to default standard and there are no items or boxes stretching it out. This has happened more than once.

  • Flex 4.7 AIR 16.0 SDK invalid signature

    I Am trying to publish a beta version of my app to Apple to leverage TestFlight testers but I keep getting an Invalid Signature error.  Invalid Signature - Make sure you have signed your application with a distribution certificate, not an ad hoc cert

  • Posting  with document splitting

    What is posting with document splitting ?  Transaction code for document splitting.. <b>Helpful posts will be rewarded</b>