How to disable the Popup of Form Fields in SfDocumentEditorContainer

Greetings,

I am currently utilizing the Document Editor, where I have incorporated Form Fields within the document. Upon clicking on any of these Form Fields, a popup window appears. I am seeking guidance on how to deactivate this feature. Could you please advise on the necessary steps to achieve this?


9 Replies

DS Dhanush Sekar Syncfusion Team March 25, 2024 01:52 PM UTC

Hi Rene,


You can utilize the inline form field mode for completing forms, although it is limited to text form field types only. For other types of form fields, a pop-up will be displayed. We have prepared a sample for you to refer to.

<SfDocumentEditorContainer @ref="container" EnableToolbar=true Height="590px" ServiceUrl="http://localhost:62870/api/documenteditor/" EnableSpellCheck=true DocumentEditorSettings="settings">

    <DocumentEditorContainerEvents Created="onCreated" DocumentChanged="onDocumentChange" ContentChanged="onContentChanged" SelectionChanged="onSelectionChanged"></DocumentEditorContainerEvents>

</SfDocumentEditorContainer>

@code {

DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { FormFieldSettings = new FormFieldSettingsModel() { FormFillingMode = FormFillingMode.Inline }};

}


Regards,

Dhanush Sekar


Attachment: server_20056db7.zip


RS René Saß April 23, 2024 09:25 AM UTC

Hello,


maybe i did not explain it correctly. If i double click on any form field the popup still opens in your demo.




Attachment: demopic_ca2414e2.rar


KM Kavitha Muralitharan Syncfusion Team April 24, 2024 01:30 PM UTC

Rene, currently we are checking the reported problem and will update the details on or before 26 April 2024.



YO Yogesh replied to Kavitha Muralitharan April 26, 2024 12:42 PM UTC

I am facing an issue in Angular where I don't want to open the Fields Popup by double-clicking. It would be more helpful if I could use that double-click as I want.



DS Dhanush Sekar Syncfusion Team April 29, 2024 05:40 PM UTC

Yogesh, currently we are checking this scenario, and will update the details on or before 30 April 2024.



DS Dhanush Sekar Syncfusion Team May 1, 2024 11:53 AM UTC

Yogesh, currently we are validating to provide API to disable popup and will update the details on or before May 2, 2024.



DS Dhanush Sekar Syncfusion Team May 3, 2024 10:12 AM UTC

Hi Yogesh,


You can use enableFormField API to disable the formfield popup. Please refer the below code for reference.

Blazor:

<SfDocumentEditorContainer UseDefaultEditor="false" @ref="container" Width="80%" Height="590px" EnableToolbar=true>
<SfDocumentEditor EnableFormField="false" EnableSelection="true" EnableEditor="true" EnableContextMenu="false"></SfDocumentEditor>

</SfDocumentEditorContainer>



Angular: 

this.container.documentEditor.enableFormField = false;


Sample - Grzwtb (forked) - StackBlitz


Regards,

Dhanush Sekar



YO Yogesh May 3, 2024 10:50 AM UTC

Dhanush Sekar, Thanks For the reply which works smoothly ...



DS Dhanush Sekar Syncfusion Team May 6, 2024 06:36 AM UTC

Yogesh, Thanks for the update.

 

We would be happy to assist you as always.


Loader.
Up arrow icon