Support for Conditional Fields (IF ELSE) in Document Editor Control

Hello,

I am using the Syncfusion Document Editor and want to implement conditional fields, similar to Microsoft Word's IF fields. Specifically, I am looking to display content conditionally within the document based on the values of merge fields, such as inserting custom messages or displaying different sections of content.


In Microsoft Word, this functionality is achievable by using the IF field syntax:

{ IF { MERGEFIELD FieldName } = "Condition" "Text if True" "Text if False" }

For example:

{ IF { MERGEFIELD Status } = "Active" "Welcome, active member!" "Please renew your membership." }

This would display a customized message based on the "Status" field value.


My questions:

  1. Does Syncfusion Document Editor currently support IF fields or any type of conditional logic within the document? If yes, could you provide details or documentation on how to implement it?
  2. If conditional fields are not supported, would this feature be on the roadmap for future releases, or could it be implemented?


Thank you for your help and any information on this capability!


Best regards,

Ana Vasilcoiu


1 Reply

DS Dhanush Sekar Syncfusion Team October 14, 2024 04:18 PM UTC

Hi Ana,


  • Does Syncfusion Document Editor currently support IF fields or any type of conditional logic within the document? If yes, could you provide details or documentation on how to implement it?

Currently, document editor doesn’t provide support for conditional fields. however, if document contains IF ELSE field, it will be preserved.

 

We have already logged this as feature request. We don’t have any immediate plans to implement this feature now.       

      

You can track the status of feature from the below link:            

Add support to insert and edit fields in JavaScript | Feedback Portal (syncfusion.com)

 

  • If conditional fields are not supported, would this feature be on the roadmap for future releases, or could it be implemented?

We usually have an interval of at least three months between the releases. At the planning stage for every release cycle, we review all open features once again and finalize features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented.     


Regards,

Dhanush S


Loader.
Up arrow icon