Adaptive Form - Rich Text Editor Default Font Family in XML | Community
Skip to main content
Level 4
December 2, 2021
Solved

Adaptive Form - Rich Text Editor Default Font Family in XML

  • December 2, 2021
  • 1 reply
  • 834 views

Hello,

 

In my adaptive form I am using rich text fields (Text Box component with Rich Text enabled) and need to set the default font family for the submitted XML. I am using the guideBridge.getDataXML function on form submission. Currently upon submitting, the default font family is Times New Roman. How can it be set to another font such as Arial? Below is an example of the XML:

 

 

<?xml version="1.0" encoding="UTF-8"?> <formData xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <testRichTextField> <body xfa:APIVersion="2.7.0.0"> <p style="font-family:Times New Roman;font-size:12pt;letter-spacing:0pt;color:#000000;text-align:left;"> <span>Test</span> </p> </body> </testRichTextField> <stateOverrides xfa:dataNode="dataGroup" /> </formData>

 

 

I have tried editing the font-family in the css for the rich text field, but the changes do not reflect in the XML.

 

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Tiwari

As per GuideBridge API, there is no method available to set the font type of the submitted dataXML. You have to customize the submitted dataXML post-processing, as discussed here.

 

1 reply

Mayank_Tiwari
Adobe Employee
Mayank_TiwariAdobe EmployeeAccepted solution
Adobe Employee
December 3, 2021

As per GuideBridge API, there is no method available to set the font type of the submitted dataXML. You have to customize the submitted dataXML post-processing, as discussed here.

 

techddxAuthor
Level 4
December 3, 2021

I was able to edit the xml post processing. Thank you