Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Issues with putting a list into a text box with \n as divider

Issues with putting a list into a text box with \n as divider

Scheduled Pinned Locked Moved Help
15 Posts 2 Posters 4.0k Views 1 Watching
  • 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.
  • CreatiCodeI CreatiCode

    @tyller_

    Thank you for the thorough testing and detailed report. We will fix the issue of using "" as the splitter.

    Can you please share a specific project you are working on? So that we can help make sure the join and split blocks work as expected.

    Tyller_T Offline
    Tyller_T Offline
    Tyller_
    trusted helpers
    wrote on last edited by
    #6

    @info-creaticode I will share it and make a set demonstration of what happens when I get time, currently I have to attend something and it’ll take about an hour or two, when I finish it and get home I’ll start making it, my testing was just changing the inputs and seeing what happens so I don’t have saves of everything

    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
    </div>

    1 Reply Last reply
    0
    • CreatiCodeI CreatiCode

      @tyller_

      Thank you for the thorough testing and detailed report. We will fix the issue of using "" as the splitter.

      Can you please share a specific project you are working on? So that we can help make sure the join and split blocks work as expected.

      Tyller_T Offline
      Tyller_T Offline
      Tyller_
      trusted helpers
      wrote on last edited by
      #7

      @info-creaticode After making the demonstration on a computer I found out the error only occurs on my iPad, (model name is iPad 7th Generation), but still it’d be useful to know when you must use \n and \n to take from list

      Demonstration Project Link: https://play.creaticode.com/projects/651da265fc9a5a6d14898b19

      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
      </div>

      Tyller_T 1 Reply Last reply
      0
      • Tyller_T Tyller_

        @info-creaticode After making the demonstration on a computer I found out the error only occurs on my iPad, (model name is iPad 7th Generation), but still it’d be useful to know when you must use \n and \n to take from list

        Demonstration Project Link: https://play.creaticode.com/projects/651da265fc9a5a6d14898b19

        Tyller_T Offline
        Tyller_T Offline
        Tyller_
        trusted helpers
        wrote on last edited by
        #8

        @tyller_ It’s error crashed… It was working when I was typing the post, though I’m typing this on my iPad and it was really lagging since I pasted the link and started typing before it, also something to mention is CreatiCode is taking 1.2 Gb of website data on my iPad (also was taking 2.7 Gb before I cleared and safari had prompted me to give CreatiCode access to more space on my iPad) so there’s a chance there’s a memory leak (or I guess a storage/cache leak?) causing a lot of data to cache…

        <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
        </div>

        CreatiCodeI 1 Reply Last reply
        0
        • Tyller_T Tyller_

          @tyller_ It’s error crashed… It was working when I was typing the post, though I’m typing this on my iPad and it was really lagging since I pasted the link and started typing before it, also something to mention is CreatiCode is taking 1.2 Gb of website data on my iPad (also was taking 2.7 Gb before I cleared and safari had prompted me to give CreatiCode access to more space on my iPad) so there’s a chance there’s a memory leak (or I guess a storage/cache leak?) causing a lot of data to cache…

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #9

          @tyller_

          Hi, we have updated these blocks so that

          1. You will only need to use “\n” for both joining and splitting
          2. If the separator is invalid, such as "", it will report an error in the console panel but won’t stop working
          3. The split block works no matter if the text in the textbox is from splitting a text or from user typing.

          These updates should fix most of the issues you mentioned above. If there are other issues, please let us know.

          Tyller_T 1 Reply Last reply
          0
          • CreatiCodeI CreatiCode

            @tyller_

            Hi, we have updated these blocks so that

            1. You will only need to use “\n” for both joining and splitting
            2. If the separator is invalid, such as "", it will report an error in the console panel but won’t stop working
            3. The split block works no matter if the text in the textbox is from splitting a text or from user typing.

            These updates should fix most of the issues you mentioned above. If there are other issues, please let us know.

            Tyller_T Offline
            Tyller_T Offline
            Tyller_
            trusted helpers
            wrote on last edited by
            #10

            @info-creaticode I just found out while working on something, (on mobile devices) inserting with \n in an input field still breaks, BUT if you press the widget quick edit button (orange button with arrows shown in editor when using widgets) it fixes it if it’s inputted already, not permanently, but it fixes the graphical bug for that insert, just letting you know there is a way to “fix” it somewhat

            <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
            </div>

            CreatiCodeI 1 Reply Last reply
            0
            • Tyller_T Tyller_

              @info-creaticode I just found out while working on something, (on mobile devices) inserting with \n in an input field still breaks, BUT if you press the widget quick edit button (orange button with arrows shown in editor when using widgets) it fixes it if it’s inputted already, not permanently, but it fixes the graphical bug for that insert, just letting you know there is a way to “fix” it somewhat

              CreatiCodeI Offline
              CreatiCodeI Offline
              CreatiCode
              wrote on last edited by
              #11

              @tyller_

              Can you please explain what you meant by “inserting with \n in an input field”? Do you mean splitting a list with “\n”? Some code or a project link would be helpful. We will make sure it does not break. Thanks

              Tyller_T 1 Reply Last reply
              0
              • CreatiCodeI CreatiCode

                @tyller_

                Can you please explain what you meant by “inserting with \n in an input field”? Do you mean splitting a list with “\n”? Some code or a project link would be helpful. We will make sure it does not break. Thanks

                Tyller_T Offline
                Tyller_T Offline
                Tyller_
                trusted helpers
                wrote on last edited by
                #12

                @info-creaticode on a mobile device if you go for example the project I made above, on the examples where it shows a list join by \n on the same line, just pressing the widget edit button should put them all on different lines properly, I think it may be the edit button reloads the widgets to add the size rescale cube in the bottom right and when it does it has to reload the text and it reloads it with \n properly used, to replicate use a mobile device (I’m on an iPad), make a project, add a multi line input text box, make a list with multiple items, join the list with \n, it should show it all on the same line, press the widget quick edit button, it should then put them all on separate lines

                <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                </div>

                CreatiCodeI 1 Reply Last reply
                0
                • Tyller_T Tyller_

                  @info-creaticode on a mobile device if you go for example the project I made above, on the examples where it shows a list join by \n on the same line, just pressing the widget edit button should put them all on different lines properly, I think it may be the edit button reloads the widgets to add the size rescale cube in the bottom right and when it does it has to reload the text and it reloads it with \n properly used, to replicate use a mobile device (I’m on an iPad), make a project, add a multi line input text box, make a list with multiple items, join the list with \n, it should show it all on the same line, press the widget quick edit button, it should then put them all on separate lines

                  CreatiCodeI Offline
                  CreatiCodeI Offline
                  CreatiCode
                  wrote on last edited by
                  #13

                  @tyller_

                  Your project has 5 parts now. Which part would reproduce this issue?

                  1 Reply Last reply
                  0
                  • Tyller_T Offline
                    Tyller_T Offline
                    Tyller_
                    trusted helpers
                    wrote on last edited by
                    #14

                    @info-creaticode part 2 on a mobile device, if you use a mobile device (I’m using an iPad), click see inside, go to part 2, when it splits and shows 1 2 3 as if separated by spaces, click the widget quick edit button, it should then put them all on separate lines

                    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                    </div>

                    CreatiCodeI 1 Reply Last reply
                    0
                    • Tyller_T Tyller_

                      @info-creaticode part 2 on a mobile device, if you use a mobile device (I’m using an iPad), click see inside, go to part 2, when it splits and shows 1 2 3 as if separated by spaces, click the widget quick edit button, it should then put them all on separate lines

                      CreatiCodeI Offline
                      CreatiCodeI Offline
                      CreatiCode
                      wrote on last edited by
                      #15

                      @tyller_

                      We can confirm the textbox will not handle the \n separated string on iPads as new lines at the moment. It is added to our list for future fixes. Thanks for reporting this issue.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • CreatiCode