Hide button on the bar

Hi,

Is it possible to hide the button (password input) programmatically from JavaScript when creating the PDF Viewer control so that the user cannot use it?

Image_3805_1759769106053


Thank you very much!


3 Replies

VS Venkada Subramanian Durai Syncfusion Team October 7, 2025 01:58 PM UTC

Hi Pere Argelich Romà,

Thank you for the update. You can achieve your requirement by configuring the desired toolbar items in the Form Designer toolbar using the toolbarSettings API.

 

For your reference, we have attached a sample demonstrating this approach. Please review the sample and let us know if it meets your requirements or if you have any questions.

Code snippet:
 

viewer.toolbarSettings = {

  showTooltip: true,

  formDesignerToolbarItems: [

    'TextboxTool',

    // 'PasswordTool',

    'CheckBoxTool',

    'RadioButtonTool',

    'DropdownTool',

    'ListboxTool',

    'DrawSignatureTool',

    'DeleteTool',

  ],

};

 

Sample with toolbarSettings


Regards,
Venkada Subramanian D



PA Pere Argelich Romà October 7, 2025 02:12 PM UTC

Works perfect! thank you very much!



VS Venkada Subramanian Durai Syncfusion Team October 8, 2025 07:12 AM UTC

Hi Pere Argelich Romà,

Thanks for the update. Please ping us if you need any assistance or have any additional requirements.


Regards,

Venkada Subramanian D


Loader.
Up arrow icon