Skip to Content
avatar image
Former Member

Disable Save Button in the Interactive PDF form

Hi Experts,

I have created an interactive form using NWDS and I am able to show it as Collable Object. Now the requirement is that I have to disable the save button from the PDF.

Can you please let me know how to disable the Save Button for the interactive form?

Thanks in Advance

Regards,

Kuldeep Verma

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 27, 2008 at 02:55 PM

    Hi Kuldip,

    if you're trying to hide the Save Button in the Adobe toolbar, then you can place the following code in the wdDoModifyView method to hide the whole toolbar.

    	
    // Get interactibe form handler.
    	   IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(), "<name of your form>");
    		
    //	Get appearance setter.  
    	 IWDPDFDocumentAppearance appearance = iFormHandler.getDocumentContext().getAppearance();
    	 
    	// Hide menu bar.
    	appearance.hideMenuBar(true);  
    		
    	// Hide tool bars.
    	appearance.hideToolBars(true);

    hope this helps,

    harman

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Harmon,

      I have not the exact solution but this alternative works to fulfill the requirement.

      Thanks a lot Harmon.

      Regards,

      Kuldeep Verma

  • avatar image
    Former Member
    Aug 27, 2008 at 01:59 PM

    Hi

    Type in the following script for the button in the initialize event. Script language is formcalc.

    <Your button name>.access = "readOnly"

    Regards

    Thashin

    Add comment
    10|10000 characters needed characters exceeded