Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Cloud backend input -> textarea : how to keep line-breaks?

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    2
    135
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thomas D last edited by

      Seems line-breaks are automatically removed, any way to keep them?

      Joseph Benguira 1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira @Thomas D last edited by

        Hey Thomas

        At client side you could encode them, if you are using a cloud backend action, in the mapping you can choose FORMULA instead of FIELD
        and then type a formula like this:

        $("input[name='YourInputName']").val().replace(/\n/g, "<br/>")
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post