Submit button help (please)

I have tried asking for help on this topic before, but didn't get any replies. So I try again.
I have created a pdf form with a submit button that submits the form to a webservice url. I submit it as HTML.
I receive the form data just fine in my webservice, but I don't know what to return. It seems that the webservice always returns something. I have tried returning a string but get the following:
Is it possible to return a message saying that the form was receive ok or that an error occurred?
Does anyone have an example?
Thanks
Birthe

When you have a form, the form has to point to something so that the action of pushing a button on the page has the website do something.
<form method="post" action="dothis">
That pretty much needs to lead the form. In my case, "dothis" is a php page that does the actual heavy lifting. I do not think it is a good idea to put a "mailto" on a website because it invites spam. One might as well announce one's email address to all of the spambots in the world. I don't do that for myself and I won't do that for a client.
So, in my case, "dothis" is a php call.
Here, your question probably needs to migrate over to the php help area, but I'll offer a solution:
<?php
mail("[email protected]", $subject, $message, $from);
?>
In php, the "mail" command will tell a server (that can send an email) to send an email to the address, along with the text that you have set up for the email subject, the text of the message and the text you gathered from the form for either the name or the email address of the person filling out your form.
The "dothis" php call takes the information from the filled out form as a post and you use php to parse that posting for the information you need from your form. You can also have php check for form validity or for blanks where you don't want them and stop the script if the visitor did not fill out the form:
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Your message was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");
if(empty($visitor) || empty($visitormail) || empty($visitorphone) || empty($notes )) {
echo "<h2>Use your Back button - fill in all fields, No message was sent.</h2>\n";
die ("Use back! ! ");
The first "if" statement checks for something approximating a real email address, the second checks for blank fields that are required.
That should get you started.

Similar Messages

  • Submit button - help

    Hello all,
    I have a jsp page which has a few input text fields and a Submit button.
    When I enter data into these fields and click on Submit, these data get inserted into the a database table.
    I generate a password every time I click on the submit button.
    Now, even if I do not enter any data into the fields and click on Submit, the password gets genereated and gets added into the database, which should not be the case.
    How can I improve this? All help appreciated by this newbie.
    Thanks
    Regards
    Aparna

    Hey friend,
    well one of the options for solving your problem is while declaring the database table declare a inteigrity constant that the password field should not be null.
    So you can direclty get the exception of it.
    But this increases lot of load.
    It would really gud if at all you can do all this validations at the client side iteslf using java script or some other dynamical mechanism.
    Regards,
    RAHUL

  • Form submit problem - help please!

    I am new to this forum and to using forms, so I hope I am posting this in the correct area. I want to have a Volunteer Application form and I set it all up but the first time through I mistyped my email address. Since then I have tried MANY different things to try and fix this including starting from scratch, resaving my email address with adobe's website, and then I finally removed the submit email button altogether. BUT, next to Highlight Fields there is a Submit button and and that still submits to the wrong address!
    I check the xml source and it shows the email address correctly - but under advanced setting in Acrobat I see: http://ns.adobe.com/AcrobateAdhocWorkflow/1.0/ and then further down the list is:
    adhocwf:initiator:mywrongemailaddress
    I would greatly appreciate any help at all on how to fix this.
    Thank you.

    Hi,
    There are many ways to set up a Submit button, but the way you are describing is using the "Email Submit" button in LC Designer. You can change the email address here:
    If on the other hand you have used a Regular Button and changed the type to Submit, then you would access the email via the Submit tab:
    That deals with the LiveCycle side of things.
    The next step is if you had Reader Enabled the form in Acrobat. What happens next depends on the version of Acrobat you have, but if it is Acrobat version 8 or 7, then the step to Reader Enable the form is to Distribute the form via the Form menu. See this example/summary with screen shots: http://assure.ly/etkFNU .
    If you have made a mistake during this process, then you may have affected your ID in Acrobat preferences. I can't do a screenshot for Acrobat version 8 or below, But if you have a look in Preferences (from the Edit menu) and go to the Identity tab, check your email address there:
    This is Acrobat X:
    Hope that helps,
    Niall

  • Flash button help PLEASE

    PLEASE HELP ME!!!
    Ok, here is my problem in short. I am fairly competent in
    flash. I am able to export a flash button out in flash 6, but am
    not in flash 8 or 9. The button just turns dead after i upload the
    button into dreamweaver even though its working when i export it
    out in flash.
    I did ALOT of experimenting. The button that was exported out
    in flash 8 or 9 can work with "_blank" but not "_self". I did
    exactly the same thing for flash 6 and it works!!! This is so
    frustrating.
    I was hoping to export it out in flash 8 or 9 because it has
    additional graphics in it.
    Can anyone please tell me what is wrong. THANKS.
    (dead button means when clicked on nothing happens)

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Your link doesn't work.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "reed86" <[email protected]> wrote in
    message
    news:galhtn$7uq$[email protected]..
    > Hi, I would really appreeciate if somebody could help me
    with this really
    > annoying problem,
    >
    > I'm using dreamweaver 8, I have designed a website using
    the dreamweaver
    > flash
    > buttons for my site menu, when I F12 preview the site
    the menu displays
    > fine in
    > both IE6, 7 & Firefox but when I upload my site no
    flash displays at all,
    > this
    > isn't just a problem with the menu buttons it wont
    display ANY swf like
    > mp3
    > players or flash banners.
    >
    > I have uploaded a blank page with just the flash menu
    here:
    >
    >
    http://80.177.175.77/cr/training/index.html
    >
    > if you visit that page it will appear blank, but in the
    source you will
    > see
    > the code for the menu, I have uploaded these two java
    scripts to a folder
    > titles 'Scripts':
    >
    > AC_ActiveX.js
    >
    > AC_RunActiveContent.js
    >
    > I have also uploaded the swf buttons to the main folder.
    >
    > I really don't know what else to do? Any help would be
    greatly appreciated
    >
    > Thanks,
    >
    > Carl
    >

  • Array of buttons help please

    Hi,I'm creating a calendar/diary program and i need help with the following:
    I have 3 classes. One called Calendar_Notetaker.java. This one is the main applet class. The other called MonthDate.java. This class figures out the number of days in month, leap year ect. using the java.util.date. Then another class called CalendarPanel.java. This class creates the actual caladar.
    I used a button array to print the days. However i'm having problems accessing the buttons. i need to put an actionlister on them so when a user clicks on them it opens a new window. i know how to open a new window from a button but i cant figure out how to do it from a button array. Do i need need to create an instance from the main applet or can i do it in the class that generates the buttons?
    here are my classes..note these are all in sepearte files.
    any suggestions would be appreciated
    thanks
    Kevin
    PS. These were done in Borland Jbuilder 7 Enterprise
    package calendar_notetaker;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Calendar_NoteTaker extends Applet {
    private int currentYear;
    private int currentMonth;
    private MonthDate myMonth;
    CalendarPanel monthPanel;
    private boolean isStandalone = false;
    //Get a parameter value
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    //Construct the applet
    public Calendar_NoteTaker() {
    //Initialize the applet
    public void init() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    setLayout(new BorderLayout());
    myMonth = new MonthDate();
    currentYear = myMonth.getYear();
    currentMonth = myMonth.getMonth() + 1;
    monthPanel = new CalendarPanel(myMonth);
    add("Center", monthPanel);
    Panel panel = new Panel();
    panel.add(new Button("Previous Year"));
    panel.add(new Button("Previous Month"));
    panel.add(new Button("Next Month"));
    panel.add(new Button("Next Year"));
    add("South", panel);
    show();
    public void setNewMonth()
    myMonth.setMonth(currentMonth - 1);
    myMonth.setYear(currentYear);
    monthPanel.showMonth();
    public boolean action(Event event, Object obj)
    if(event.target instanceof Button)
    if("Previous Month".equals(obj))
    if(--currentMonth < 1)//goes before january
    currentYear--;
    currentMonth = 12;
    if(currentYear < 70)//year < 1970
    currentYear = 70;
    } else
    if("Next Month".equals(obj))
    if(++currentMonth > 12)//if you go past 12 months
    currentYear++;//set to next year
    currentMonth = 1;//set back to january
    if(currentYear > 137)//137 years from current year.
    currentYear = 137;
    } else
    if("Previous Year".equals(obj))
    if(--currentYear < 70)
    currentYear = 70;
    } else
    if("Next Year".equals(obj) && ++currentYear > 137)
    currentYear = 137;
    setNewMonth();
    return true;
    //Start the applet
    public void start() {
    //Stop the applet
    public void stop() {
    //Destroy the applet
    public void destroy() {
    //Get Applet information
    public String getAppletInfo() {
    return "Applet Information";
    //Get parameter info
    public String[][] getParameterInfo() {
    return null;
    package calendar_notetaker;
    import java.awt.*;
    import java.util.Date;
    public class CalendarPanel extends Panel
    private MonthDate myMonth;
    Label lblMonth;//month label
    Button MonthButtons[];//button arrary for month names
    public CalendarPanel(MonthDate monthdate)
    lblMonth = new Label("",1);//0 left 1 midele 2 right side
    MonthButtons = new Button[42];//42 buttons 7x6 some wont be used
    myMonth = monthdate;
    setLayout(new BorderLayout());
    add("North", lblMonth);
    Panel panel = new Panel();
    panel.setLayout(new GridLayout(7, 7));//7rows x 7cols
    for(int i = 0; i < 7; i++)
    panel.add(new Label(MonthDate.WEEK_LABEL));
    //0 to 42 monthbuttons above is 42
    for(int j = 0; j < MonthButtons.length; j++)
    MonthButtons[j] = new Button(" ");
    panel.add(MonthButtons[j]);//add the butttons to the panel
    showMonth();
    add("Center", panel);
    show();
    public void showMonth()
    lblMonth.setText(myMonth.monthYear());//monthyear is built in util.date
    int i = myMonth.getDay();//get current day
    if(myMonth.weeksInMonth() < 5)//if month has less than 5 weeks
    i += 7;//we still want to have a 7x7 grid
    for(int j = 0; j < i; j++)
    {//add the begging set of empty spaces
    MonthButtons[j].setLabel(" ");
    MonthButtons[j].disable();
    // k<days in month user picks
    for(int k = 0; k < myMonth.daysInMonth(); k++)
    {//add days in month + empty spaces
    MonthButtons[k+ i ].setLabel("" + (k + 1));
    MonthButtons[k+ i ].enable();
    for(int l = myMonth.daysInMonth() + i; l < MonthButtons.length; l++)
    {//add ending number of empty spaces
    MonthButtons[l].setLabel(" ");
    MonthButtons[l].disable();
    package calendar_notetaker;
    import java.util.Date;
    public class MonthDate extends Date
    //week header
    public static final String WEEK_LABEL[] = {
    "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
    //days in month assuming feburary is not a leap year
    final int MonthDays[] = {
    31, 28, 31, 30, 31, 30, 31, 31, 30, 31,
    30, 31
    //label to print month names
    public static final String MONTH_LABEL[] = {
    "January", "February", "March", "April", "May", "June", "July", "August", "September", "October",
    "November", "December"
    //create constructor
    public MonthDate()
    this(new Date());
    public MonthDate(Date date)
    {//get the current system date and month add one cause its off one
    this(date.getYear(), date.getMonth()+1);
    public MonthDate(int year, int monthName)
    super(year,monthName-1,1);//year, monthname,start day posistion
    public boolean isLeapYear()
    int year;
    Date date = new Date();
    year=date.getYear();
    return ( ((year % 4 == 0) && (year % 100 != 0))
    || (year % 400 == 0) );
    public int daysInMonth()
    int i = getMonth();
    if(i == 1 && isLeapYear())
    return 29;
    } else
    return MonthDays;//return the array declared above
    public int weeksInMonth()
    { //finds howmany weeks are in a month
    return (daysInMonth() + getDay() + 6) / 7;
    public String monthLabel()
    { //method to return the month names for printing later
    return MONTH_LABEL[getMonth()];
    public String monthYear()
    {//method to return the month and year for printing later
    return monthLabel() + " " + (1900 + getYear());

    add a listener and do it from there.

  • The Submit button doesn't work

    Hi all,
    this is my first post, so first off all sorry for any bad
    english.
    I have some code that makes a login system in flash with PHP.
    Well the problem is that when i click de submit button when
    registering a new user, flash wont go to the frame i want (just
    stands in the same frame), still the user is registered in the
    database.
    this is the code of the button:
    help please.

    Try this code.
    I'm not positive it would work but I think the problem is
    that you put the loadvars within the function (?). I don't know if
    that'll cause any problems but I assumed it would.
    In addition to that, I'm not sure if anything in error might
    be returned. My assumption is that it should be undefined. But then
    again, it might be null, not undefined. So, just to make sure, I
    included to check if user != "ok".
    Well, I hope it does work!

  • To get value of a ADFdropdown in backing bean without submit button

    hi all,
    It maybe a very easy thing to do ,but please could you help me with this as I am new to ADF?I have a dropdown whose value i need in my backing bean without the use of a submit button..
    please do help me out!!!!

    Hi Frank ,
    Thank You for replying...
    But even after autosubmit=true, it didnt work..
    i shall post the code below,could u please throw more light on it?
    <af:selectOneChoice value="#{bindings.fetchbusinessservicesVO1Pagename.inputValue}"
    label="#{bindings.fetchbusinessservicesVO1Pagename.label}"
    binding="#{GiveAccess.selectOneChoice1}"
    id="selectOneChoice1" >
    <f:selectItems value="#{bindings.fetchbusinessservicesVO1Pagename.items}"
    binding="#{GiveAccess.selectItems1}"
    id="selectItems1"/>
    </af:selectOneChoice>
    <af:commandButton text="commandButton 1"
    binding="#{GiveAccess.commandButton1}"
    id="commandButton1"
    action="#{GiveAccess.getItemsList}"/>
    When i use Command button it works fine..but i want the same functionality without the command button.(GiveAccess is the backing bean where i want the value from dropdown)

  • After submit button selected dropdown entry is lost!

    Dear All,
    I have a problem as below..
    I created a static dropdown list of Webdynpro enumerated type.
    Using online scenario after I press webdynpro native submit button, the selected entry is getting lost.
    I guess this is due to the control is given to Webdynpro and the form is loaded again with default entries in Initialzation
    I want to keep/retain the selected entry even after hitting SUBMIT button.
    Please advice me how to resolve.
    Regards,
    Srinivas
    Edited by: srinivas aare on Mar 2, 2010 9:09 AM

    Hi Robert,
    Thanks for the reply.
    Submit(Webdynpro Native) is giving the control back to Webdynpro but user can still stay on the same page after hitting submit button, Ideally I should have taken the control back to the main screen to avoid this issue after submitting. But I want the user to see what information they have submitted in read only mode.
    Can you tell me what do you mean by temporary structure Do I have to maintain the same structure twice in Webdynpro context?
    Can you please explain me clearly on "save my info in a temporary structure (matching my context)"?
    Where do we maintain the structure in WebDynpro copntext or is there any other place like interface?
    And how can we influence the same binding to tell the elements on form to get values from temporary structure?
    Many tanks in advance..
    Regards,
    Srinivas

  • Forms Central-Attach email to Submit button

    In Forms Central, how do I attach a response email to the Submit button? Please advise. Thx.

    When a user fills out the form and clicks "Submit" the data will be sent to the FormsCentral server and will be available for you to view/analyze in your account, on the "View Responses" tab of the form.  In addition, using a Paid level subscription you can set up "Email Notifications" on the "Options" tab of the form to have a notification email sent to you which can include the forms data (responses). 
    This overview of FormsCentral is a good resource to learn more about our service: http://forums.adobe.com/docs/DOC-1413
    Thanks,
    Josh

  • Trying to delete "submit" button. Tried unsucessfully 5 times. Need help and want to start over.

    I created a pdf that I just wanted people to be able to fill in, download, print out and then mail to me.  I followed the instructions from a previous acrobat expert who replied to me yesterday and that did not work.  Now, I've tried this 5 times and the system has blocked me out unless I pay for your advanced system which is $143.  Please help
    Re: Want to delete the "submit" link on a pdf
    created by Lucia Lao in FormsCentral - View the full discussion
    Hi,
    I believe this is a form that you created with FormsCentral and then you downloaded/saved as PDF via the "Save Submission-Enabled PDF" button via the Distribute Tab.
    Please select via FormsCentral app main menu:
    - File -> Save As PDF Form... and then
    - when you get the dialog "Would you like your PDF form to collect responses online in the "View Responses" tab?" select "Don't Collect Responses" button.
    This will save the PDF form without the Submit button/link.
    Thanks,
    Lucia
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5218029#5218029
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: [http://forums.adobe.com/message/5218029#5218029]
    To unsubscribe from this thread, please visit the message page at [http://forums.adobe.com/message/5218029#5218029]. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in FormsCentral by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

    The instructions Lucia gave you were correct. It seems you have a Basic trial account (5 forms). You can just delete the forms you are not using so you can create more. Can you explain in more detail how those instructions above didn't work? I think there is some confusion so any details you can provide will help clear it up.
    Randy

  • Help with submit button remove null value

    Hello,
      First of all I dont know much about java, but I wanted to create a submit button and I did alot of research.  I want a button that will email some pdf files I have created in LiveCycle.  So far everyting works but my code needs help.
    There are a few fields I want to be place in the body of the e-mail, but if left blank I dont want null to apear on the email subject or body.
    Here is what I have so far *this is a work around I like to konw the proper code.
    var 
    strToAddress, strCCAddress, strSubject, strMessagestrToAddress
    = myemail@atwork;strCCAddress
    = myemail@atwork;
    strSubject
    = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue +" " +mi.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strSubject = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue;
    strMessage
    = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +mi.rawValue +". " +last.rawValue +"\n\n*All provisions in  have been met" +"\n\n Comments: " +com.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strMessage = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
    event.target.submitForm({cURL
    :"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
    //this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;
    The 4 fields am working on are First name, last name, Mi and comments.  First and last are alwasy used, but if MI is not I dont want Null in there, with what I have above it works but its messy.  I wanted to do the same with Comments if its left blank I like for it to read "Comments: None" not null
    on the If statement I just re did the whole deal with out the  mi.rawvalue but i now that is not right way... any help would be great.
    Thanks

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • Help with submit button, signatures and locking fields

    https://acrobat.com/#d=sCcToPsLqquP0uePmVL1pQhttp://https://acrobat.com/#d=ZsRL5CeME*4iV3VHnvUFXw
    Well here's a doozy for ya. I have no idea what I'm doing as you will be able to see when you look at my form.
    What I want to happen is to have the user fill out the form, choose the operations manager and select submit button associated with the drop down box. All other dropdown boxes and submit buttons should be hidden. I need the form to lock so there are no edits except the signature field, the next dropdown box and submit button. I'd like to customize the email with a specific subject line and specify the email address based on the person selected from the drop down box. I'd like this to repeat itself until there are no more signature fields left. It is very important that this document follow the order specified.
    I tried to use an example Niall put out there to use regular buttons as submit buttons with script. I changed a couple things and it worked to submit the form based on the person selected but I still do not know how to lock the fields. Long story short, I broke what did work and don't know how to do what I really want to do or fix what had once worked. I don't understand javascript so please, if you're willing to help teach me, be patient and spell it out like i'm speaking a foreign language.
    Oh boy, even I don't want to do this. What a mess!

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • No submit button in distributed form - JavaScript help

    I have creted a from in Live Cycle Designer. After distribution submit button is not visible in Acrobat and Reader. I've looked at the form JavaScript and find out this part of code which probably hide submit button in Acrobat 9:
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);
    I am not familair with JavaScript so I would apprecite if someone can help me how to edit it to make submit button visible.
    Below is a complete JaveScrip of mentioned form.
    Thanks
    //@@FORMSWORKFLOW auto-generated script
    AdobePatentID="B643"
    var AdobePatentID = "AdobePatentID=\"B643\"";
    // Show a dialog to ask the user's name and email during submit.
    askUserIdentity = function(doc)
        // string constants
        var dlgStrings =
            sDlgTitle:          "Send Form",
            sEmailLabel:        "&Email Address:",
            sNameLabel:         "Full &Name:",
            sSubmitLabel:       "&Send",
            sToLabel:           "To:",
            sSubjectLabel:      "Subject:",
            sSubjectContent:    "Submitting Completed Form",
            sAttachmentLabel:   "Attachment:",
            sFromLabel:         "From:",
            sErrorEmailRequired:"Please enter a valid email address.",
            sErrorNameRequired: "Please enter your name."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            elements:
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sToLabel,
                            width: 80,
                            bold: true,
                            font: "dialog"
                            type: "static_text",
                            item_id: "sdto",
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sSubjectLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            name: dlgStrings.sSubjectContent,
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sAttachmentLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            item_id: "atch",
                            width: 270,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "static_text",
                    name: dlgStrings.sFromLabel,
                    bold: true,
                    font: "dialog"
                    type: "static_text",
                    name: dlgStrings.sEmailLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "emal",
                    width: 250
                    type: "static_text",
                    name: dlgStrings.sNameLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "name",
                    width: 250
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
                    ok_name: dlgStrings.sSubmitLabel
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.initialize = function(dialog)
            var METADATA_ANNOT_NAME = "adhocFormState";
            var PROP_INITIATOR = "initiator";
            var initiator;
            var annot = doc.getAnnot(0, METADATA_ANNOT_NAME);
            if (annot != null) {
                var arrProps = new Array();
                arrProps = annot.contents.split(";");
                initiator = getProperty(arrProps, PROP_INITIATOR);
            var decodedFileName = unescape(doc.documentFileName);
            var initVars =
                sdto: initiator,
                atch: decodedFileName
            dialog.load(initVars);
        desc.validate = function(dialog)
            var values = dialog.store();
            if (values.emal == "") {
                app.alert(dlgStrings.sErrorEmailRequired);
                return false;
            if (values.name == "") {
                app.alert(dlgStrings.sErrorNameRequired);
                return false;
            return true;
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.name = values.name;
            this.result.email = values.emal;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;
    askEmailClient = function(doc)
    // string constants
        var dlgStrings =
            sDlgTitle:      "Select Email Client",
            sDlgText:       "Please indicate the option which best describes how you send mail.",
            sDesktop:       "&Desktop Email Application",
            sDesktopDesc:   "Choose this option if you currently use an email application such as Microsoft Outlook Express, Microsoft Outlook, Eudora, or Mail.",
            sInternet:      "&Internet Email",
            sInternetDesc:  "Choose this option if you currently use an Internet email service such as Yahoo or Microsoft Hotmail. You will then need to save your form and return it manually to [email protected] using your Internet email service."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            alignment: "align_fill",
            elements:
                    type: "static_text",
                    name: dlgStrings.sDlgText,
                    width: 350,               
                    font: "dialog"
                    type: "radio",
                    name: dlgStrings.sDesktop,
                    item_id: "rad1",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sDesktopDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "radio",
                    name: dlgStrings.sInternet,
                    item_id: "rad2",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sInternetDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                width: 250,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.send = values.rad1;
            this.result.save = values.rad2;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;           
    AdobePatentID="B643"
    // set a new property value to a property in the specified array.
    setProperty = function(arrProps, propName, propValue)
        var i;
        var bSet = false;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                propParts[1] = propValue;
                arrProps[i] = propParts.join(":");
                bSet = true;
                break;
        if (!bSet)
            arrProps[arrProps.length] = propName + ":" + propValue;
    AdobePatentID="B643"
    // get the value for a property in the specified array.
    getProperty = function(arrProps, propName)
        var i;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                return propParts[1];
        return null;
    AdobePatentID="B643"
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);

    I'm distributing the form in Acrobat Pro 9.
    I created the form in Live Cycle Designer.  Save, then open in Acrobat pro.  Extend Features to Acrobat Reader, click the drop down box on Forms and hit distribute.  I save a local copy.  When I open the distributed form the buttons do fall silent, the Submit Button on the purple line up top still works, but that doesn't appear in reader and the people who will be completing the form all use reader.  Any suggestions for a fix?
    I'd like to distribute because that automates the tracking.  It works undistributed.

  • I need Help on my "submit button"

    Hi I am new in using Flash CS3 Professional and I am working
    with my site this is my site www.ihawan2.com
    null the submit form did not work
    and when I looked at script theres no script on that button so
    please help me do it... and including the "reset button" of that
    Reservation Form

    Rob thank you very much for your kindness. You know what I
    erased my reservation form in my site but i will put it back since
    you gave the sample form... what was amazing Rob was that you
    helped me centered my flash site in user's browser in any size...
    what I did Rob was viewed your DDG site and follow the "how to"
    demo there... thank you very much Rob I don't know how to thank
    you...you really helped me...again Rob thank you very much for your
    kindness...

  • I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please

    I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please. This has been happening for a while and i've tried everything but it doesn't work.

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

Maybe you are looking for