Read Only form after Submit to Email

I have a form i'm working on. Basically its a form I like for users to fill out and then click submit once they are done to send it in an email. The script i found below does what I want but with further testing i found out it's not exactly what I want. Basically it will make all the fields in my form Read only once the Submit button is clicked. Problem is that if you hit Submit and then realized you need to go back and make a change, you can't. The trigger to Read Only is when you click Submit. Is there a way I can do the lock down once the receipient receives the form? I'm a noob so please go easy with the responses =) thank you all in advance!
Mike
I found some documentation that says to not change the form in ready:layout event (which what I was doing with the "readOnly", so I placed the following code (to make all fields readOnly) in the Button's mouseDown event.
// Get the field containers from each page.
for (var i = 0; i < xfa.host.numPages; i++) {
var oFields = xfa.layout.pageContent(i, "field");
var nodesLength = oFields.length;
// Set the access type.
for (var j = 0; j < nodesLength; j++) {
var oItem = oFields.item(j);
if (oItem != this) {
oItem.access = "readOnly";

bind the all the field to managed bean.
Write a action method of button .in method get all the fields and make readonly to true.
add partialtrigger programmaticly
AdfFacesContext.getCurrentInstance().addPartialTarget(this.field1);

Similar Messages

  • How to get the value of a parameter/field in a ADF Read-Only Form

    Hi,
    My requirement is as follows. Could anyone shed some light on this issue.
    I am showing the records from db table using ADF Read-Only Form ( which uses ViewObject created for the table). Now I want to capture(get) the value of a field in this form and then have to invoke an action based on the value in this field. I mean to say the next page depends the value of a field in this form.
    Please suggest how can I achieve this functionality?
    Thanks in advance.
    ~Sivaji

    That's indeed what Sivaji needs.
    In the page definition you can add a value to the parameters of a certain method. Like RJundi mentioned, point to the attribute of the current row.
    Example:
    The value of the read only textfield will be something like this:
    #{bindings.EmployeeName.inputValue}points to an attribute value in the pageDef of the page:
        <attributeValues id="EmployeeName" IterBinding="AllEmployees">
          <AttrNames>
            <Item Value="EmployeeName"/>
          </AttrNames>
        </attributeValues>The attribute value has also an iterator binding defined in the page def:
        <iterator id="AllEmployees" RangeSize="10"
                  Binds="AllEmployees" DataControl="MyService"/>If you want to 'pass' the attribute of the current row to the service, you can create a methodaction (eg: public void printEmpName(String name)) in the page def or you can drop the method from the datacontrol on to the page. After dropping the method, a screen will appear asking to fill in a value for the parameter ('name' in this example). Fill in '#{bindings.EmployeeName.inputValue}' if you want to pass the EmployeeName of the current row.
    Hope it helps,
    Koen Verhulst

  • Custom Formatting of a ADF Read-Only Form

    From what I've worked with so far, the ADF read-only form will only allow you to pick the number of "rows" and "columns" to format data. Columns titles are aligned to the left and column values aligned to the right.
    But the specs I've been given are for a highly customized layout, with column titles above the column values, and with some rows containing only two columns of data and some rows requiring up to ten columns of data.
    How can I adjust the format of ADF components, like read-only forms, to customize the layout?
    Thanks in advance.

    Thanks for the advice Shay.
    What I need to do is take one view object's data (20 columns) and spread them out, in HTML terms, into multiple tables to provide various TR/TD formats on a single screen.
    Are you saying it is possible to layout a single view object's columns into different layout panels to mimic multiple HTML table formats?
    Thanks again.

  • How to get the key values of record in ADF Read-only Form?

    Hi
    I am using ADF Business Component VO.
    I have a search page( ADF Search Form) and I am displaying the results of the search in a ADF Read-Only Table( only few columns are shown) .Then by selecting a record and clicking on the button 'View' , I am navigating to a different page(ADF Read-Only Form) to show all the columns of the table for the selected record.
    In the second page, I have one more button 'view child details'.Now when I click on this view child details button, I have to show another page(ADF Read-Only Form) which fetches the data from one of the child tables of parent record.
    My idea is to create a ViewLink between the parent and child tables.( I have more than 15 child tables for a parent table).
    Is there anyother way to achieve this functionality?
    Please respond ASAP.
    Thanks in advance.
    ~Sivaji..
    Message was edited by:
    Sivaji...the boss

    Sijav,
    ASAP?
    Anyway - yes, you can do this with a view link. When you add the child table to the application model, make sure you actually add it as a child of the parent table instance (select the parent VO first, then use the shuttle to add it). This way, the parent->child relationship should be coordinated for you automatically. You should not need to get the key values manually.
    Then, when you create the page to show the detail table, make sure you use the child table that is shown as a child of the parent table in the data control palette (expand parent table to see the child).
    Hope this helps,
    John

  • How to control the canvas of the ADF Read-Only Form

    Hi
    Could you give an idea of how to control the canvas of the fields in ADF Read-Only form. My requirements are as follows
    1) ALL the labels has to left justified irrelevant of their length
    2) ALL the values also has to left justified and should be wrapped if it exceeds some length.
    3) I want to show the results in more than one column with proper alignment as mentioned above.
    Thanks in advance.
    Sivaji.......

    Sivaji,
    There is a "rendered" attribute on the af:table component. You can write EL to pragmatically control the evaluated value of expression to set the visibility.
    Assuming you are using BC for your middle layer you can do something like the following:
    <af:table ...
    rendered = #{YourDetailViewObject.somestring.inputValue != null}
    ..>
    Z

  • Read-only forms work great - page fails to load on interactive form.

    we have a weird issue.
    we moved all our Adobe development (which was all new) to our QA environment.
    Our 1 interactive form fails to even display, while all the other read only forms work fine.
    I changed my interactive form to ENABLED off (unchecked) and moved it to QA - and it displays fine. I changed ENABLED = checked, and it's not working.
    any ideas?

    chintan,
    we figured this out late yesterday - I was selecting all the business partners for a drop-down list in the form . It turns out another developer loaded 30k business partners in RPM. So, this was causing the form to blow up.

  • Convert editable PDF to read-only when sent in an email - JavaScript

    I have a real estate company that is trying to have an application that a agent and customer can fill in the needed information, hit a submit button, have the javascript compose an email with the attached pdf.  Here's the issue I'm having: I need to be able to convert the editable pdf to a read only so when the customer receives a copy they cannot edit the information again. 
    Here is my javascript code for the submit button:
    // This is the form return email. It's hardcoded
    // so that the form is always returned to the same address.
    // Change address on your form to match the code below
    // Send to buisness email
    var cToAddr = "[email protected]";
    // First, get the client CC email address
    var cCCAddr = this.getField("1st Tenant Email").value;
    if(cCCAddr != "")
    // Now get the second email only if it is filled out
    var cBenAddr = this.getField("2nd Tenant Email").value;
    if(cBenAddr != "")
    // Now get the third email only if it is filled out
    var cthirdAddr = this.getField("3rd Tenant Email").value;
    if(cthirdAddr !="")
    // Set the subject and body text for the email message
    var cSubLine = "Test - Lease Form"
    var cBody = "Thank you for submitting your form.\n" + "Save the filled form attachment for your own records"
    // Send the entire PDF as a file attachment on an email
    this.mailDoc({bUI: true, cTo: cToAddr, cCc: (cCCAddr + "; "
    + cBenAddr + "; " + cthirdAddr), cSubject: cSubLine, cMsg: cBody});

    Hi keely,
    Firstly you will need to buy a Reader Extensions license (this allows Reader to save the form data - otherwise the client will require Acrobat). Once this is done, you will then need a button (called "Lock Down" or something) that executes a script that makes all of the fields readOnly and updates a form variable (say, "locked") to indicate that the form is locked. You will also need to add a script to the initialize event that checks for the value of "locked", then executes the readOnly script (if the form needs to be locked down). An example of a readOnly script can be found on page 434 of http://www.adobe.com/go/learn_lc_scriptingReference (see "Disabling all form fields" script)
    Here is a sample form ( https://files.acrobat.com/a/preview/9df046bd-1125-4923-95de-35fc845139ca ) with a 'Lock All fields' button. Once you click this button all the forms turn 'Read only'.
    Another way to accomplish this which still requires Reader Extensions or Acrobat Pro is to use digital signatures. The people you are sending this to should have certificates set up.
    Hope this helps.
    Regards,
    Rave

  • Acrobat Reader PPC 2 and submit by email

    Hi,
    I searched the forums before posting this question. I created a form with Live cycle Designer which had a submit by email button (with to address set). Running this form on a PDA (Acrobat Reader Pocket PC 2) is fine, however when I try to submit the form it pops up an empty email mail message (i.e. no to address or subject, but with attachment). Is there anyway to get it to at least populate the to address?

    Don't use the regular "'submit by email button." If you use this button, you can only submit the data as XML. Instead, make your own button.
    In the Object library under Standard objects, click and drag a plain button to your form. Change the Control Type to Submit. Now you should have a new tab called Submit with a "submit to URL" option.  In that field type the return email address in the following format:  mailto:[email protected]  Toward the bottom of the same option, there is a field that says "submit" and the choice is XML data package.  Change that to PDF.  Then change the name of the button to "Submit by Email."  Now when you preview your form and click the Submit by Email button, it should mail the completed form as a PDF instead of simply mailing the raw data.

  • How do I encrypt pdf form on Submit by email

    Hi,
    Is there anyway to encrypt the pdf form after the user clicks on the "Submit by Email" button?
    I have Acrobat 9.

    Though an encrypted PDF (i.e. one with security settings) does nothing to protect your data in transit. The PDF can still be opened by anyone who intercepts the mail.
    If data is sensitive email isn't suitable. You need to submit to a web site, using the secure https protocol.

  • Read only error after instalation

    I was using the Arch 0.7 beta2 build for a while and everything was, more or less, fine, I finally decited to update to 0.7 and now after I install I get a buch or "filesystem is read-only" errors and then it frezes when starting hotplug,  I love Arch, the philosophy is what I have been looking for, I hope someone can help,  Even Gentoo can't muster the speed!

    you can start with disable hotplug,
    you should also use udev instead if devfs, just edit your menu.lst(devfs=nomount) and your fstab to static naming scheme, (/dev/hdx),
    if that not help it could be some form of apm/acpi trouble, there are afew kernel parameters you could try as a workaround for that, can't remeber them in my head right now but i think a popular one is "noapic",

  • Read-only filesystem after reinstallation,chmod failure

    I decided to switch to a pure systemd init yesterday. Despite strictly followed wiki my system failed to init with switch to systemd emergency mode with no way to cure the problem. So I followed with reinstallation of my system (32bit on 64bit HW as recently). I went thoroughly according installation wiki, installed and configured the base system and correctly umount-ed chrooted environment. I have reformated primary root and boot partitions with ext4 and ext2 respectively and extended /var partition with reiserfs. My home ext4 partition has left unchanged. Grub has been configured OK when being compared with my two Thinkapd Arch installations. My fstab is correctly set using UUID and explicit rw option. After rebooting from Install CD all seemed going well to login prompt and successfull root login. Next proceedings failed on unchangeble read-only filesystem permissions.
    How can I chmod the partitions to make them writable and add users and use pacman? One fail with systemd is followed with another one with unchangable read-only permissions... Courious and very frustrating... Any help, please? Thanks, Petr

    You'll need to post files, logs etc. if you want help - according to you, everything is correct .
    For example, grub.cfg, fdisk -l or gdisk -l /dev/sdX, fstab...

  • Read Only Form Field based on Authorization

    Hi there,
    I'd like to make a field in a tabular form read only based on an Authorization scheme, like you can for a region field by using a PL/SQL condition. Is there any way to do this?
    Cheers,
    Andrew.

    hi Andrew,
    please choose the REGION REPORT link and choose the column you like then see Authorization Scheme tab then select the option your named AS you want to give .
    Set DISPLAY AS TEXT (SAVE STATE) it will show only no edit action can perform by user.
    thanks
    Mark.
    Websoft solution
    http://www.go-websoft.com
    Edited by: Websoft on Sep 9, 2009 5:02 AM

  • Problem:Member is Read only Mode after login with other user

    Dear,
    I am facing problem to enter the data in member. i.e Read only. but same member is fine with login with admin user.
    I also assign the security with write permission to user. but the only that member "X" is in read only mode..
    Is task list can effect on that??? as i am also using task list. Becoz when i add another member that is not member of that hirechiary its fine.
    I am working on hyperion version 11.1.2.1..
    Regards,
    AMSI

    Thanks, Problem has been solved myself becoz when i add new member in the form as this form is already part of Planning Unit Hierarchy , that's why the newly added member in the form can't be write only till up to when u add this member into Planning Unit Hierarchy.
    Regards,
    AMSI

  • Physical disk for OS and read only filesystem after live migration

    I am running OVM 3.1.1 connected to an EMC storage array.  I have a situation where physical disks are being used for OS and binary filesystems (i.e. /u01, etc..) rather than virtual disks inside a repository.  When a VM is migrated from one host to another, I sometimes get a message stating the size of the disk changed and shortly afterwards the filesystem is changed to read only and I have to reboot to fix the problem.  Is this an unsupported configuration or do I have potential problems with my LUN mapping?  Has anyone seen this problem before?

    I am running OVM 3.1.1 connected to an EMC storage array.  I have a situation where physical disks are being used for OS and binary filesystems (i.e. /u01, etc..) rather than virtual disks inside a repository.  When a VM is migrated from one host to another, I sometimes get a message stating the size of the disk changed and shortly afterwards the filesystem is changed to read only and I have to reboot to fix the problem.  Is this an unsupported configuration or do I have potential problems with my LUN mapping?  Has anyone seen this problem before?

  • LiveCycle 8.0 Digital Signature shows Orange Flag ONLY IF Blank Form Has Submit or Email Button

    My subject line says it all. After a lot of experimenting, including reinstalling Adobe Designer Standard 8.0, I have found that, in Adobe LiveCycle 8.0.1291.1.339988, my drag-and-dropped Document Signature Field will include a clickable orange flag ONLY IF the blank form I started with includes an E-mail button or Submit button. Strange but true. If you then delete these buttons, the orange clickable flag still appears fine.
    Try it...
    In Adobe Designer Standard 8.0 LiveCycle:
    1. File > New.
    2. Select Use a blank form, Next.
    3. Next.
    4. In Form Return Setup dialog box, DEselect Add an Email button and DEselect Add a print button (so that both are NOT checkmarked).
    5. Click Finish.
    6. Drag a Document Signature Field to the blank page.
    7. Click PDF Review tab. Note that no orange clickable flag appears for the user then to be able to use for entering a digital signature.
    Close the page.
    Try a variation now that will work (yielding an orange clickable flag):
    1. File > New.
    2. Select Use a blank form, Next.
    3. Next.
    4. In Form Return Setup dialog box, SELECT either the Add an Email button OR the Add a print button (so that either IS checkmarked).
    5. Click Finish.
    6. Drag a Document Signature Field to the blank page.
    7. Click PDF Review tab. Note that an orange clickable flag DOES appear this time for the user then to be able to use for entering a digital signature.
    8. For further test, click the Design View tab and now DELETE the displayed button.
    9. Click PDF Review. The flag is still there.
    BOTTOM LINE: It at least looks like it's not just "Distribute forms" that requires that you have a button at Blank Form creation time. Also "Digital Signature" functionality requires that you display a button at Blank Form creation time -- which you can then delete.
    A bug? Or do I have some major concept wrong -- maybe I'm mis-interpreting the whole Digital Signature concept and process?

    Is this in the wrong forum?  The problem I am having is with Acrobat's Distribution feature.
    Shawn Gallagher
    Program Specialist, Records Management, OSS
    [email protected]
    202-70(7-5595)
    >>> MichaelKazlow <[email protected]> 2/18/2010 9:49 PM >>>
    Please repost in the Designer forum.

Maybe you are looking for

  • External user not able to join Live Meeting, but can join Lync Meeting

    We have LYNC 2010 pool with OCS 2007 R2 & Live Meeting clients ( with few LYNC 2010 clients). We are having issue with one external organization with Live Meetings. If any of our company user schedules Live Meeting, the particular external company us

  • GPU makes LR CC slow

    Hi I have a desktop with a ATI R7 240 Graphic Card. I can activate the gpu usage in LR without any error message. But LR CC is horribly slow then. As soon as I deactivate the gpu in LR Settings it works normally. I installed the newest ATI driver but

  • How can I put in my album covers?

    I can not put pictures on the cover of my albums, which are the ways to put this picture on the cover of my albums?

  • Re:  Tutorial:  Using an EJB Project

    I am a computer engineering student who is learning weblogic. I appreciate if anyone can help me with my question on Using an EJB Project This tutorial can be found in weblogic 8.1: go to workshop ->help->Tutorials and samples-> Using an EJB project

  • Garageband 10.0.1 mavericks

    Garageband 10.0.1 is properly broken for guitar lessons. So glad that it leaves the earlier version (6) in place. Sound disappears. Timing on the count in is wrong (slow then fast on lead in to lesson exercises. You set the monitor to speakers and th