bradl Posted February 4, 2022 Posted February 4, 2022 (edited) Sorry about all the questions — now that a jotform → IPS post trigger is basically working I'm trying to make some display improvements in the posted topic. I'm trying to get the simplest form input type on the jotform side that will translate line breaks to the created post on the IPS side. Textarea: mapping the form textarea to post content strips out all line breaks in the post. Back to testing basic textarea. This is on a separate line as textarea input, with zap formatting yields The jotform submission log and notification emails preserve the line breaks as entered. I feel like I need a "|raw" somewhere 🙂 TinyMCE: test submissions using Tiny MCE as the message content field seem to preserve line breaks and indeed all formatting during testing. I get excited! But once I enable the zap and deploy the form, the incoming message field is empty. CK / Squire editors: these seem to pass encoded content of some kind, and results in an empty field content for the post. {"widget_metadata":{"type":"htmltext","value":"PGRpdj5NZXNzYWdlIGdvZXMgaGVyZTwvZGl2Pg=="}} Any tips for getting formatted post body content? Edited February 4, 2022 by bradl
bradl Posted February 6, 2022 Author Posted February 6, 2022 Would still like to get formatted text (at least line breaks) into the generated post. Following up with another question in addition to missing line breaks in post content: in setting up the zap on the invision task, I set the to be post Hidden Status thusly: However when the post is created it is in the approval queue instead of approved+hidden as expected. For my purposes I can live with this but thought it possibly worth mentioning. Perhaps I have some moderation setup incorrect. I do get confused with moderator groups vs moderator staff etc. 😛
bradl Posted February 8, 2022 Author Posted February 8, 2022 On the editor issue I settled on using the Jotform TextArea set to Rich Text and then added css to the form to hide the hideous (nicEdit-panel) button bar.
Daniel F Posted February 9, 2022 Posted February 9, 2022 How is Jotform passing the data? Have you tried an email as target instead of a topic/post? Are the line breaks working there?
bradl Posted February 9, 2022 Author Posted February 9, 2022 It appears in Jotform notifications, submissions and whatnot to be passed as a [p] with [br] line breaks. The rich text setting passes a series of [div]s. I haven't tried email as an action (don't see it listed as an available Invision action). Since the rich text workflow seems functional, I think I'd call it solved, for my needs anyway. Cheers.
Daniel F Posted April 20, 2022 Posted April 20, 2022 As a sidenote, you can always use the formatter feature in Zapier to remove all the unnecessary HTML code or to run some own operations on the text before you pass it to IPS. bradl 1
Recommended Posts