How to block the 'save' function when the required fields are not filled?

Hello, Everyone
I am new for this scripting. My question is:
How to block the 'save' function when the required fields are not filled?
I designed a PDF file with some required fields and I do not want the user to save the document until all required fields are filled. My idea is to write some scripts in Willsave method like:
if (this.getField("Family Name").value == ""){
app.alert('You should fill the Family Name field firstly!');
But I do not think it works as finally the document is saved after all.
Please help me on that!
So much thanks.

Dear Randybearwang,
I am a Rocky myself and I know how though it is to establish some good codes. Since I created some forms with validation options myself I might have a code for you. The code also creates an alert box (Yes/no option) if the user chooses yes the form will be validatet, if he chooses "no" the alert window will be closed.If  everything is filled out correctly the form will be saved otherwise the textbox will be higlighted and gets focus.
If you need further assistance , please let me know
Have fun with the code.
P.s I don´t know how to upload the "PDF" document. I wrote you an email, please get back to me if you still need the file.

Similar Messages

  • Load the data for which these 2 fields are not initial (Blank).

    Hi Experts,
    I am extracting data from R/3 to BW using a Z data source based on view.
    In the extract there will be 2 fields User ID & Date.
    My requirement is to load the data for which these 2 fields are not initial (Blank).
    My Data source is extracting all the data from R/3 to BW.How can filter it out in BW.
    Thanks

    Hi Siegfried,
    Thanks for the info Provided.
    As I am new to BW, Could you please provide me with the code (ABAP) I need to insert and where...in which part of the below start routine in need to insert the code....
    My requirement is to load the data for which the USER ID (ZUSR_ID) & DATE (ZDATE) is not null/blank/0.
    <b>Start Routine IN Transfer Rules</b>
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    FORM STARTROUTINE
      USING    G_S_MINFO TYPE RSSM_S_MINFO
      CHANGING DATAPAK type TAB_TRANSTRU
               G_T_ERRORLOG TYPE rssm_t_errorlog_int
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_datapak_line type TRANSFER_STRUCTURE,
          l_s_errorlog TYPE rssm_s_errorlog_int.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Thanks for the help.

  • Email submit button causing required error when all required fields are filled in

    It looks like if I have more than 1 instance of subform  added,  my email submit button triggers "..at least one required " error message when all required fields are filled-in.
    I toggle subforms between "visible" and "hidden (from layout)".  Any suggestion is appreciated.
    ralph

    The fields that are hidden should have the validate.nullTest property set to "disabled", something like;
    TextField1.validate.nullTest="disabled";

  • How to debug a RFC function  when the user is non-dialog type? Please help!

    hi Experts,
      I am calling a RFC FM residing in B from R/3 system A.
    R/3 A -
    Call FM residing in B----
    > R/3 B
    The user attached to the remote destination is a non-dialog type.
    I cannot change the user type of this user.
    Therefore how to debug the RFC FM in System A?
    Are there any alternatives?
    Please help
    Thanks
    Gopal

    in your RFC FM, code an endlees loop.
    something like:
    data: gv_x  type xfeld value 'X'.
    do.
      if gv_x = space.
        exit.
      endif.
    enddo.
    now you can catch the mode in TA SM50, go in it, change gv_x to space and debug what is coming further.

  • We have completely lost the SEND function in Thunderbird. We are not offline. There is no SEND button or send option anywhere. Where did it go?

    The send function has completely disappeared. The "send later" function also is gone. We have checked every possible option on the menu bar and "send" has vanished.
    The forward and reply buttons are visible. If you select an email and hit forward, the email pops up for you to add a message, but there is no way to send it. Ditto for reply.
    Also, we are unable to get the now hidden menu bar to show. Pressing the ALT key does not work. Neither does "right-clicking on an empty section of the tab strip" as Mozilla instructs.
    We have made no changes to the Mozilla software, made no updates or downloads. One day, the send function was simply not there.
    Any help or assistance would be greatly appreciated. Thank you!

    That worked. Thank you so much!

  • VA02 Dataloss flag is set, when new screen fields are not changed, why ?

    Hi,
    I have added some new fields to the sales order item Additional data B tab.
    When I go into the sales order in change mode (VA02) and navigate to the Additional data B tab and don't change any of the new field values, the system think that I have made changes to the sales order when I press the yellow exit button, I have debugged the transaction and field (SAPMV45B)R185D-DATALOSS is being populated, how can I stop this.
    Any help will be appreciated.
    Thanks
    J-J

    Hi Pascal,
    I guess that the marked fields are the ones you are missing in bi.
    "P" means that the values are extracted but one cannot restrict the values by using the parameter of an info package. Did you try to test the extraction with the rsa3 to see if the extraction locally works no your r/3 system?
    If it works, check if the fields of the data source are contained within your transfer structure. If niot, add them and add the mapping to your targets.
    Regards,
    Yann

  • The four buttons at the top right when editing a presentation are not there

    see above!!

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Need your help with the SaveAs function plz

    Good day everyone, 
    I need your help yet again to figure out if what im trying to acomplish is even possible within Livecycle designer.
    My issue is simple in nature, prevent the SaveAs "open window" to show up when they press the disk icon or use the saveAs option from the File menu if some of my fields are not fill-in.
    To do so, i placed the code into the Pre-save area of my form and that code checks if certain fileds are filled-in are not.
    If there not, i want to tell the user to fix this before the SaveAs occurs.
    But right now, the problem is that the "SaveAs open" window shows up FIRST i have to tell where i will save the file and all that good stuff and THEN my code gets activated.
    I was able to create my onw SaveAs button and it works well, the problem is that i want to also capture any save's that are executed around the form (the disk icon, the SaveAs in the FileMenu and the Ctrl+s)
    Is there a way to do just that? right now i would be ok in just being able to tell Livecycle to cancel the SaveAs action if that was possible, but i cant find anyway of doing that neither
    Your help is always appreciated
    Thanx a lot.

    I am having same problem with a 2011 year tax PDF fill in form I JUST got from IRS website.
    The actual form is the 2011 8829.
    I am running Windows 7 64 bit,   Adobe Reader X version 10.1.4.
    After trying to open the doc (nothing displays) I go to properties, and it says ...
    Title:  2011 Form 8829
    Author:  SE:W:CAR:MP
    Created: 12/23/2008
    PDF Producer:  Adobe LiveCycle DSesigner ES 8.2.
    PDF Version:  1.7 (Acrobat 8.x)
    Tagged PDF: No
    Fast Web View:  No
    Yikes ... was hospitalized last year ... now I have 9 days to file.

  • How to remove the sort function on the drill down and then save

    how to remove the sort function on the drill down and then save in the  change local view of the Query
    Is it possible to change the porperties of any characteristic in the local view and then save?
    If so please post the answer.

    I do not think that option is possible.
    Regards,
    Venkata Boga.

  • My iPod Touch will not play through external speakers when it is docked.  It only plays through it's internal speaker.  All the other functions on the iPod can be controlled by the external speakers (volume,track, etc).  How do I fix this?

    My iPod Touch will not play through external speakers when it is docked.  It only plays through it's internal speaker.  All the other functions on the iPod can be controlled by the external speakers (volume,track, etc).  How do I fix this?

    I would try in oreder:
    - Resetting the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restoring the iPod via iTunes.  First from backup and if problem persists, restore to factory defaults/new iPod.

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • How to get the Useru2019s position when the user doesnu2019t have CP relation

    We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
    Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
    Regards
    Paul

    Hi Paul,
    Have a look at these tables.
    Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
    Central business partner address data
    The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
    Relationships between business partners
    Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
    Hope this helps,
    Kind Regards,
    Matthew

  • I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function works

    I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function, render workspace function, export file are still operational. How can I fix it so I may complete my assignment?
    Besides DaVinci Resolve, Adobe Creative Suite 6 is the only software on the machine. I am using Windows 7 Professional 64-bit Operating System on AMD FX 6100 six-Core Processor at 3.31gHz and 32 GB RAM memory. There are two SLI-bridged GTX680 NVidia cards.
    The software was very stable for the last six months, working with 720P proxy files from 2.5K masters (Blackmagic Design Camera). I am working on a feature-length project that exceeds 1000 edits. I have broken the file into 2 one hour segments.
    I have deactivated the software before reinstalling the entire OS from scratch. PP6 was very stable for 48 hours. Then the freezing space bar returns. After a dozen strokes into the project, same problem.  I have made cache files store next to originals, I have deleted preview files if they were corrupted and causing instability. Am I missing something?
    I have Microsoft Security Essentials for virus protection. I double checked the memory for damage/defect. Nothing says that the motherboard or other components are damaged.
    I am in film competition overseas and need to have deliverables in less than a month's time.  I lost the last two weeks troubleshooting and this crisis came at an inopportune moment of the project.
    Any assistance would be greatly appreciated.

    Still getting software freezes but found a way to mitigate for the mean time.
    Upon launching Adobe Premiere Pro, hit CTRL-ALT-DEL to launch TaskManager as well.
    You will want to highlight Adobe QT32 Server.exe
    Right click and select "End Process Tree"
    You will get considerable stability in the program, long enough to get timing of cuts done. Be sure to save often.
    If the program freezes, do not hit Save. You definitely want to avoid saving the corruption into your TimeLine
    CTRL-ALT-DEL to relaunch the TaskManager and highlight Adobe Premiere Pro.exe
    Right-click to "End Process"
    No need to reboot the whole system; just launch Premiere Pro again and continue with the session. Note that your work reverted to Last Save.
    Hope this helps until the bug is fixed.

  • How do I add "Save As" to the Pages drop down menu?

    How do I add "Save As" to the Pages drop down menu?

    It took me awhile but I found what I was looking for. This is posted at http://www.tuaw.com/2012/07/29/get-save-as-back-on-mountain-lions-file-menu-easi ly-and-without/
    Option 1. Terminal.app If you are comfortable using Terminal.app, you can add a different keyboard shortcut this with one simple line. First, quit all your apps except Finder and Terminal. Then paste this command (as one line) into Terminal.app (and press Return):
    1
    defaults write -globalDomain NSUserKeyEquivalents -dict-add 'Save As...' '@$S' 
    view rawdwrite-global-saveas.sh hosted with ❤ by GitHub
    That's it!
    Launch TextEdit and open the 'File' menu and you should see "Save As..." back in its rightful spot with its original Command + Shift + S shortcut, as shown in the image above.
    Aside: After you enter the 'defaults write' command, you will not see any confirmation that it was entered correctly. Terminal.app is a little terse sometimes. If you want to verify it from the command-line, enter this:
    defaults read -globalDomain NSUserKeyEquivalents
    and look for "Save As..." = "@$s"; in the output.
    Option 2. System Preferences.app If you would rather not use Terminal, it's still very easy to add the keyboard shortcut.
    Launch the System Preferences.app, then open the "Keyboard" preference pane.
    At the top you will see "Keyboard" and "Keyboard Shortcuts" – click "Keyboard Shortcuts" (labeled '1' below). Then in the list on the left side, click "Application Shortcuts" (labeled '2' below). Then click the "+" button (labeled '3' below):
    Once you press that "+" button, a small window will appear asking you to enter the title of the menu item and the keyboard shortcut that you want to use.
    Enter "Save As..." in the "Menu Title:" field, and then press the keyboard shortcut that you want to use. In the example below I pressed Command + Shift + S:
    Note: It used to be true that you had to enter an actual ellipsis (which you can get by pressing Option+ ; on a US-English keyboard). However, when I tested this in Mac OS X 10.8.2, it worked with three consecutive periods.
    Bonus Tip: Hide the "Duplicate" menu item.
    In my original article I suggested that you also enter a keyboard shortcut for "Duplicate" and while youcan do that if you wish, you do not need to do that.
    However, if you would like to hide the Duplicate menu item, you can do that. There are two steps: first, remap "Save As..." to Command + Shift + S (as shown above). Then the 'trick' is to remap "Duplicate" to Command + Shift + Option + S.
    What you will have done is swap the keyboard shortcuts for "Duplicate" and "Save As..." which means that OS X will make "Duplicate" the optional command. If you open the "File" menu and hold down "Option" the "Save As..." command will change to "Duplicate"
    (Thanks to TUAW reader 'rbascuas' for pointing this out in response to the original article!)
    Important Addendum: "Keep changes in original document"
    As we reported in August 2012, the "Save As..." command in early versions of 10.8 had an unexpected and likely unwanted side effect in Mountain Lion: it would save the changes in the new document (created by "Save As...") but would also save the changes to the original document.
    However, Apple realized that users might not want that behavior, so in Mac OS X 10.8.2 they added an option "Keep changes in original document" which you can see here:
    Option A: If you want to save the changes you've made in the document and then save the document with a different name, then make sure that the box is checked.
    Option B: If you want your original document to stay as it was when you last saved it and create a new document based on the modified content of that document, then make sure that box is not checked.
    If you do not see the 'Keep changes in original document' box, then the application is probablygoing to give you the "Option B" behavior, but if you are not sure, I would suggest choosing Cancel in the "Save" dialog, then copy and paste the contents of the document into a new file, and save the new file. I know that's several extra-and-less-convenient steps, but if you are worried about preserving the original document, better safe than sorry.
    You could also save the file, duplicate it in Finder, and rename the new instance. Open old file and revert to previous save using 'Versions'.
    Frankly,I wish that Apple had just left the "Save As..." command alone, but for some reason they didn't ask my opinion. That said, I'm glad that they brought it back in Mountain Lion. I would have paid $20 for that feature alone.
    Note: This article was re-written and republished on 2013–02–21. The original process still works, but I wanted to update it to reflect some additional information.

  • How to Enable the SAVE button in the Menu Bar of the Invoice Document.

    Hi.
    How to Enable the SAVE button in the Menu Bar of the Invoice Document as it is disabled for me.
    I would like to save the Invoice document in PDF  format.
    Regards
    Irfan

    Hi,
    Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
    Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
    So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
    Hope this helps you.
    However, from the print preview you normally would not be allowed to save or print.
    Regards,
    Ram
    Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM

Maybe you are looking for

  • How do i change my user name on my icloud account

    How can i change my icloud account user name on my iphone 4s

  • Logo not displayed in pdf

    Hi all when i convert from  spool to pdf using the the function module "CONVERT_OTFSPOOLJOB_2_PDF" ,and store the pdf in front end ,the logo is displayed. However when i store the pdf in application server directory( unix) and retrieve the PDF later

  • Coverting JDT files to PDF

    I need to convert JDT files to PDF.I heard that Live cycle PDF has that functionality.I need to get some more information on how to convert JDT files into PDF.Any input relating this will be highly appreciated Thanks SK

  • Regarding error in xml validation 7.1

    Hi I am doing file to idoc scenario. In the sender agreement i selected validation by Adapter and uploaded the particular xsd.after executing the scenario in runtime workbench it is showing sucessfully processed  but in the MDT audit log I am getting

  • Snow Leopard and Indesign CS5.5 compatibility

    I have just paid for a CS5.5 Indesign upgrade on my Mac OSx 10.6.7 that is running Snow Leopard and it apparently is not supported on this type of Mac.  The processor is a 1.5 GHz Intel Core Solo.  Why is it not working???? PLEASE HELP QUICKLY!!