Thanks for your query. It would be great if you please share your document along with some more detail about your query. The following IF condition returns false and will not prompt when you update field in MS Word.
My name is Dmitry, I and my subteam are responsible for the fields functionality. While Tahir is helping you to find a workaround, I would like to share that: 1) we have just fixed the behavior of the false argument in the IF field so that no fields contained by it are updated anymore; 2) we will add the built-in support for the ASK/FILLIN fields in the next few months.
I guess I’m not being clear. The problem is not the evaluation of the IF statement. The problem is the FILLIN/ASK implementation. Since the IF condition evaluates to FALSE, I don’t want to prompt the user…but I have no way of knowing that it evaluated to false…so I prompt the user anyway. Have you looked at the code sample I attached?
I have worked with your code and have tried to understand your query. As per my understating you want to get the conditional value of IF true/false. You can not get conditional values by using Aspose.Words and MS Word.
The Aspose.Words mimics the same behavior as MS Word do for updating the IF field. The Document.UpdateFields() update the value of fields in the whole document. There no is such way to get the value of IF condition (true/false). However, you can get the value of MailMerge field (“M_88”) value and compare it in your c# code.
IF "" <> "" FILLIN "Special Notes for John:" \d "
Hope this answers your query. Please let us know if you have any more queries.
Thank you for your request. If we have enough time, we will implement the support of these fields in the current release (end of August), but most likely it will be included into the next release (end of September).
We have logged this feature as WORDSNET-6767 in our issue tracking system. I have linked this forum thread to the same feature. Hopefully, this feature will be available in September release.
Unfortunately, no. The developer responsible for working on these fields had to interrupt his work and switch to the big RTL text support feature that took a whole month. The good news is that he is back to his work on ASK/FILLIN and it is almost complete. So please expect the support for these fields in the next release for sure. I am sorry for inconvenience.