I would like to seek your help on my below issue. I have been struggling with this issue for a few days.
I have a word template as shown below in docx.
===============
It is expected that the "Age" value should have a comment box showing "Please add value to this field" message with red background colour under the "Age" field, if the value is blank.Would everyone let me know how to do it? I have been gone through a lot of technical website but end up nothing can be found.
Here is my scripts for your reference as well.
========================================================
from docxtpl import DocxTemplate,RichText
doc=DocxTemplate('test_word_2.docx')
context={'Personal_name':'Tony','Personal_Age':""}
doc.render(context)
doc.save('test_word_2_test'+'.docx')
===================================================
The expected output should be shown as below:
Hope someone can help me to have a solution to this.
Thank so much.