Import form fields when opening or pasting from a docx document

Hi,

1. When I open a docx document that has checkboxes, the checkboxes aren't converted to the syncfusion native SFDT format and thus not rendered. The result is the same when copying and pasting content from the docx file into the document editor. Is there any way to do this? By handling the paste event and doing the conversion in code for example?

2. When I export / save the document from the editor any form fields are saved as legacy fields. Is there a way to save them as non-legacy interactive fields?

Cheers, Mark

5 Replies

HC Harini Chellappa Syncfusion Team June 24, 2020 12:12 PM UTC

Hi Mark, 

Syncfusion Greetings! 

1.       Can you please share the docx documents which contains checkboxes not rendered in document editor? So that we can check on it and provide solution at the earliest. 
2.       Currently Document editor provides support for legacy fields which includes checkbox, textbox, dropdown. Can you please let us know on non-legacy interactive fields in detail? It will be helpful for us to provide solution at the earliest. 

Regards, 

Harini C 



MA Mark June 24, 2020 11:23 PM UTC

Thanks for your prompt reply.

For 1) Using your es2 Js Default Functionalities demo, open the attached file. Note that the interactive textbox and checkbox is not rendered as a Form Field but just plain text. This would be the same if pasting the content from the docx into the editor.

For 2) It would be great if the Form Fields inserted into the SFDT file could be translated to the same interactive fields that would be inserted from the Developer tab in MS Word ( non legacy ). These types of checkboxes can be clicked and checked without having to double click to bring up a dialogue

Cheers, Mark

Attachment: Fieldtest_f22e616b.7z


HC Harini Chellappa Syncfusion Team June 25, 2020 06:55 AM UTC

Hi Mark, 

Thank you for the update. 

We have checked the provided document. It contains textbox, checkbox content control. 

Currently, document editor doesn’t provide complete support for content controls as like in MS Word. We have logged this as a feature request. we will include this in any of our upcoming releases. You can track the feature status from below link.  


we will update the status of feedback link once it is taken for implementation. We will update, once implemented.  

But we will parse and layout the paragraphs of content control and inline content control. Hence the plain text is rendered. 

Regards, 

Harini C 



JS Jose Samonte October 16, 2020 01:21 AM UTC

Hi,

2020 Vol 3 release v18.3.35 says that it already has support for Content Control, but is indicated as "Added support to preserve content control feature.". Does this mean you can't add yet a content control from the Document Editor, but only preserves it between saves? Will a future version allow adding content controls via the Document Editor like for Form Fields?

Thanks.


SR Stephen Raj Chandra Sekar Syncfusion Team October 16, 2020 06:38 AM UTC

Hi Jose, 
 
Currently, Document editor doesn’t support for creation of content control, we have implemented only for preservation of content control data. 
 
We have already logged feature request for this. we will implement it any of our upcoming release. We will update the status of the feedback link once it is taken for implementation. We will update you, once feature implemented. You can also track the feature status from below link. 
 
 
Regards, 
Stephen Raj

Loader.
Up arrow icon