Changing the name of a form field via Syncfusion's pop-up UI isn't saved

I'm using Syncfusion Blazor and I have the following on my page. It loads a Word document with existing form fields already on it and when I double click on it Syncfusion will show a dialog where I can change the name of form field. However, this name isn't actually saved because when I get all of the form names via  GetFormFieldNamesAsync(), it still shows the old name. Now, if I check the name via the pop-up UI again, it will show the new name. However, if I change some other form fields via the pop-up UI and then go back to that original form field, the name reverted back to it's original name. This can also be observed in the online demos -- insert some form fields and trying change some of them, going back and checking the prior ones you saved after setting some others. You'll see in the online demo that the new name isn't changed. 

Unfortunately, there isn't a way to prevent the pop-up UI from showing when double click on a form field in unprotected mode. So it's confusing to users when their name change doesn't stick.

Thanks in advance for any help here.


<SfDocumentEditorContainer @ref="container" Height="590px" ShowPropertiesPane="@ShowProperties" @rendermode="InteractiveServer">
<DocumentEditorContainerEvents Created="OnCreated" ContentChanged="OnContentChanged">
</DocumentEditorContainerEvents>
</SfDocumentEditorContainer>

@code{
    private async void OnCreated()

    {
        using (System.IO.FileStream fileStream = new System.IO.FileStream(documentPath, System.IO.FileMode.Open, System.IO.FileAccess.Read))
        {
            WordDocument document = WordDocument.Load(fileStream, ImportFormatType.Docx);
            await container.DocumentEditor.OpenAsync(System.Text.Json.JsonSerializer.Serialize(document));
            document.Dispose();
        }
    }

    private async void OnContentChanged()
    {
        var changedFields = await container.DocumentEditor.GetFormFieldNamesAsync();

        foreach (var field in changedFields)
        {
Console.WriteLine(field);
        }
    }
}

4 Replies

CF Chad Foster February 9, 2024 07:14 PM UTC

Syncfusion's Word Processor version I'm using:  24.2.4

I'm using Blazor Server



KM Kavitha Muralitharan Syncfusion Team February 12, 2024 03:45 PM UTC

Hi Chad,

We can reproduce the reported issue "Changing the name of a form field via Syncfusion's pop-up UI isn't saved". Currently, we are validating and will get back to you by February 14, 2024.

Regards,
Kavitha M



BR Bupathi Ram Pichaimuthu Syncfusion Team February 14, 2024 01:40 PM UTC

Chad,

We have confirmed the reported issue 'Resolve Changing the name of a form field via Syncfusion's pop-up UI isn't saved' as a defect and logged a defect report. We will fix this issue in our weekly release which is expected on first week of March 2024.

 

You can track the status of the bug through the below feedback link:

https://www.syncfusion.com/feedback/50906/resolve-changing-the-name-of-a-form-field-via-syncfusions-pop-up-ui-isnt-saved

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

 

Root cause: The modified value in the text box in UI is not bound with the property. Use the “@bind-value” attribute to bind the value and the property instead of using the "Value" attribute, so that the value is updated both in UI and in property.



BR Bupathi Ram Pichaimuthu Syncfusion Team March 12, 2024 08:38 AM UTC

Chad,

We are glad to announce that our patch release (v24.2.9) has been rolled out successfully. In this release, we have added the fix for the reported issue in "Changing the name of a form field via Syncfusion's pop-up UI isn't saved".

Please upgrade to the latest version packages to resolve this issue:

CDN link:

https://cdn.syncfusion.com/blazor/24.2.9/syncfusion-blazor.min.js

https://cdn.syncfusion.com/blazor/24.2.9/syncfusion-blazor-documenteditor.min.js

NuGet link:

https://www.nuget.org/packages/Syncfusion.Blazor.WordProcessor

Feedback link:

https://www.syncfusion.com/feedback/50906/resolve-changing-the-name-of-a-form-field-via-syncfusions-pop-up-ui-isnt-saved

Please let us know if you need any further assistance


Loader.
Up arrow icon