Skip to Content
author's profile photo Former Member
Former Member

How to Disable Save Button in interactive form via sfp

Dear,experts

My requirement is that Disable Save Button in interactive form via sfp .Is there any options to do this or write Javascript/Formcalc.Please help!

Thanks

Vince.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 18, 2015 at 12:52 PM

    Hello Vince

    Use the following javascript code in "preSave"method

    if (do_not_save_condition == 1) then

    xfa.event.cancelAction = 1 endif

    Regards

    sandy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 24, 2015 at 05:47 PM

    Hi Wang,

    Please read my KBA.
    https://service.sap.com/sap/support/notes/1798411

    The available options are:

    1. ABAP Code

    From NW70SP14 onwards, SAP delivered the report FP_PDF_TEST_20, which uses the method SET_INITIAL_VIEW (see our documentation). This is an example to disable the toolbar, menu and window control.
    You can either use the report FP_PDF_TEST_20 as example to disable the undesired menus or implement the same method for your code. This will work with Adobe Reader 9.x and lower versions.

    1. Adobe Template code

    Add the below JavaScript to your Adobe template in SFP, use the initialize event:

    app.toolbar = false;

    Although it will hide the toolbar, users will be able to see it again by pressing F8. This works as of Adobe Reader version 10.x.

    Keep in mind that users can revert this setting by pressing F8. As explained in the KBA 1798411.

    Regards,
    Diego

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2015 at 03:16 AM

    Hi Wang,

    As I know, there's no cancel action for presave method in PDF.

    Specifies whether to cancel a forthcoming action. This property applies only to the following scripting events:

    prePrint, preSubmit, preExecute,preOpen, and preSign only.See This link: LiveCycle ES2 * Adobe LiveCycle Designer ES2 Cheers,

    Hardanni.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.