[HTML To MS Word Converter] 'Javascript is Required' message at the end of the document
Forge component by Benjith Sam
Application Type
Reactive

The component is working fine, but whenever I export the file through the  'ConvertHTMLToDoc' action, I get a 'Javascript is Required' message at the end of the document. 

I could also replicate this behaviour using the Demo app provided by the component.

Anybody knows a way around this? It feels like something might be wrong in the component's script. I'm using Chrome but could also replicate this in other browsers.


Thanks.

mvp_badge
MVP
Solution

Hi Manuel,

Thank you for reporting this issue, I have deployed a revised version with a slight change in the ConvertHTMLToDoc client action.

  •  Introduced an input parameter called SectionId to the ConvertHTMLToDoc Client action to focus more on a section (referring to the sectionId) instead of converting the entire body


Updated JS Snippet:

var htmlSection = document.querySelector('#' + $parameters.SectionId);

if (htmlSection) {
    $(htmlSection).wordExport();
} else {
    console.error('undefined html container');
}


Check the demo screen: HTMLToWordDoc Component Demo


Hope this helps you!


Kind regards,

Benjith Sam

Thanks a lot Benjith, this solved the issue.

mvp_badge
MVP

You're most welcome, Manuel

I'm glad it helped you :)


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.