We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

sfdt fieldType

Hello,

We are testing the DocumentEditor Control for my application. 
We were able to create merge fields by using the code:

fieldName = 'EmailID';
fieldCode = 'MERGEFIELD  ' + fieldName + '  \\* MERGEFORMAT ';
.editor.insertField(fieldCode, '«' + fieldName + '»');

And on the .sfdt file we found that the control has created the following:

{"characterFormat":{},"fieldType":0},
{"characterFormat":{},"text":"MERGEFIELD  EmailID  \\* MERGEFORMAT"},
{"characterFormat":{},"fieldType":2},
{"characterFormat":{"bidi":false},"text":"«EmailID»"},
{"characterFormat":{},"fieldType":1}

Now, we are trying to find on the opened document the Field or the result string we inserted on the document. So far, we are using the search module to find the result string ("«EmailID»"), but to achieve our needs, to enable the field edition, we are having some problems.

Thanks,

Rod 



 

1 Reply

RT Ramya Thirugnanam Syncfusion Team June 27, 2019 11:38 AM UTC

Hi Rodbrca, 
 
Thanks for contacting Syncfusion support. 
 
Please refer to the response for your queries as below. 
 
Toggle field: 
 
Could you please confirm us whether your requirement is to enable field editing to refer the toggle field code options in MS word or want to replace the field?  
   
We have considered this as feature request. We have logged the feature request for it. We will implement this feature in any of our upcoming releases. We will get back to you when this feature is implemented. 
Now, you can track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through below link.      
 
To replace the field  
Please select the field and then use insertText API in editor module to replace the selected text with given API.  
   
   
Could you please confirm the provided details satisfied your requirement? Otherwise provide the details information regarding your requirement. So that we investigate further and provide you solution at earliest.  
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon