Hi guys,
I’m wondering if anyone has been able to add any DOM parsing or HTML parsing with server-side JS.
Currently, I have Squiz forms that I want to customise the form without using body-copies as the form only needs minor changes to all fields and this will force the form to be maintained by developers from now on.
I have been unable to get keyword appears to not be parsed within the input ‘Extra Attribute’ section so my next step would be parse the output of %form_contents% into a virtual DOM and manipulate it that way, but due to inability to use Node packages I’ve been looking at including something like jsDOM/phantomJS in a browserify-ed form, but have been unsuccessful.
Performing these operations client-side is all prohibited so the manipulation must occur before the page arrives to the client.
Has anyone had anything similar?