<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="247598" data-post-id="247598">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="f0rest8" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/f0rest8/120/38551_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  f0rest8
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Try changing <code>text_input</code> in your summary section to <code>textarea</code> (thx <a class="mention" href="/u/kokolegorille" rel="nofollow">@kokolegorille</a> <img src="https://forum.elixirforum.com/images/emoji/apple/blush.png?v=15" title=":blush:" class="emoji" alt=":blush:" loading="lazy" width="20" height="20">). Is that the behavior you’re looking for?</p>
<p>Also what <a class="mention" href="/u/kokolegorille" rel="nofollow">@kokolegorille</a> said about date and datetime field <a href="https://hexdocs.pm/ecto/Ecto.Schema.html#module-types-and-casting" rel="noopener nofollow ugc">types</a>.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247598" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-do-you-increase-characters-in-a-text-box/47031/6">Post #5</a>
	                </div>
	            </div>
              <div id="likers-container-247598" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247598"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #5"></div>
  </section>
</div>
    <div class="postbit" id="247597" data-post-id="247597">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="shansiddiqui94" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/shansiddiqui94/120/32145_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  shansiddiqui94
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Form Code:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;.form let={f} for={@changeset} action={@action}&gt;
  &lt;%= if @changeset.action do %&gt;
    &lt;div class="alert alert-danger"&gt;
      &lt;p&gt;Oops, something went wrong! Please check the errors below.&lt;/p&gt;
    &lt;/div&gt;
  &lt;% end %&gt;

  &lt;%= label f, :title %&gt;
  &lt;%= text_input f, :title %&gt;
  &lt;%= error_tag f, :title %&gt;

  &lt;%= label f, :ingredients %&gt;
  &lt;%= text_input f, :ingredients %&gt;
  &lt;%= error_tag f, :ingredients %&gt;
&lt;div class="summary"&gt;
  &lt;%= label f, :summary %&gt;
  &lt;%= text_input f, :summary %&gt;
  &lt;%= error_tag f, :summary %&gt;
&lt;/div&gt;
  &lt;%= label f, :date %&gt;
  &lt;%= number_input f, :date %&gt;
  &lt;%= error_tag f, :date %&gt;

  &lt;div&gt;
    &lt;%= submit "Save" %&gt;
  &lt;/div&gt;
&lt;/.form&gt;
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247597" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-do-you-increase-characters-in-a-text-box/47031/5">Post #4</a>
	                </div>
	            </div>
              <div id="likers-container-247597" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247597"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #4"></div>
  </section>
</div>
    <div class="postbit" id="247596" data-post-id="247596">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kokolegorille" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kokolegorille/120/4784_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kokolegorille
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>No, but You should show your form code…</p>
<p>String is limited to 255 char, but text is not.</p>
<p>It’s also strange to store date as integer, there are date and datetime types of fields.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247596" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-do-you-increase-characters-in-a-text-box/47031/4">Post #3</a>
	                </div>
	            </div>
              <div id="likers-container-247596" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247596"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #3"></div>
  </section>
</div>
    <div class="postbit" id="247595" data-post-id="247595">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="shansiddiqui94" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/shansiddiqui94/120/32145_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  shansiddiqui94
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I upload the code files on gitHub it is free to <a href="https://github.com/shansiddiqui94/Dish_out" rel="noopener nofollow ugc">view</a></p>
<p>in your first bullet point you said if I am restricting anything</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule DishOut.Foods.Food do
  use Ecto.Schema
  import Ecto.Changeset

  schema "delish_foods" do
    field :date, :integer
    field :ingredients, :string
    field :summary, :string
    field :title, :string

    timestamps()
  end

  # alter table(:delish_foods) do 
  #   modify :content, :text
  # end
# The alter table I am increasing my char count to string over 255 for summary
  @doc false
  def changeset(food, attrs) do
    food
    |&gt; cast(attrs, [:title, :ingredients, :summary, :date])
    |&gt; validate_required([:title, :ingredients, :summary, :date])
  end
end
</code></pre>
<p>As you can see My changeset is not redistricting anything. Should I then add max: 250?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247595" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-do-you-increase-characters-in-a-text-box/47031/3">Post #2</a>
	                </div>
	            </div>
              <div id="likers-container-247595" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247595"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #2"></div>
  </section>
</div>
    <div class="postbit" id="247594" data-post-id="247594">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="f0rest8" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/f0rest8/120/38551_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  f0rest8
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<ol>
<li>Some possible things to consider:</li>
</ol>
<ul>
<li>Do you have a validation that is restricting it? i.e. <code>validate_length(:summary, max: 250)</code></li>
<li>Are you using something like the html helper <code>textarea/3</code> from the <a href="https://hexdocs.pm/phoenix_html/Phoenix.HTML.Form.html#textarea/3" rel="noopener nofollow ugc">docs</a> for your input field?</li>
<li>If you share more of your code it would help people see what’s going on.</li>
</ul>
<ol start="2">
<li>There are libraries like <a href="https://hex.pm/packages/timex" rel="nofollow">Timex</a> which have multiple <a href="https://hexdocs.pm/timex/Timex.html#format/2" rel="noopener nofollow ugc">format</a> options. There’s also <code>strftime/3</code> from Elixir’s <a href="https://hexdocs.pm/elixir/1.13.3/Calendar.html#strftime/3" rel="noopener nofollow ugc">Calendar</a> module.</li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247594" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-do-you-increase-characters-in-a-text-box/47031/2">Post #1</a>
	                </div>
	            </div>
              <div id="likers-container-247594" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247594"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-first-post cat-first-post" title="First post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>