<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Issue With Autofill Input</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Issue-With-Autofill-Input-82116</link>
        <description></description>
        <pubDate>Wed, 13 May 2026 21:29:39 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Issue-With-Autofill-Input-82116" rel="self" type="application/rss+xml" />

                <item>
          <title>Issue With Autofill Input</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244229#post2244229</link>
          <description><![CDATA[<p>Hi nmsinc,</p>
<p>The correct HTML for a textarea would be something like this:</p>
<pre class="language-php"><code>&lt;textarea name='content' rows='5' cols='50' id='requestedContent' class='form-control'&gt;&lt;?php echo @$_REQUEST['content'] ?&gt;&lt;/textarea&gt;</code></pre>
<p>Let me know if that clears up your issue, or if you have any further questions.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Wed, 30 Oct 2019 11:24:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244229#post2244229</guid>
        </item>
                <item>
          <title>Issue With Autofill Input</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244227#post2244227</link>
          <description><![CDATA[<p>I'm, having an issue with the following code for a autofill textarea. I know that using a input statement with "textarea" always reverts to "text" in HTML. What changes do I need to make to force the autofill text choice to fill in a "textarea" box rather than a "text" box, also; when using the form in the EDIT mode to have the $request populate within the box?</p>
<p>Another help would be to push the autofill text onto a WYSIWYG editor textarea...</p>
<p><strong>Code as follows:</strong></p>
<p><span style="color:#0000ff;">&lt;div&gt;</span><br /><span style="color:#0000ff;">    &lt;br&gt;</span><br /><span style="color:#0000ff;">    Choose Content:</span><br /><span style="color:#0000ff;">    &lt;br&gt;</span><br /><span style="color:#0000ff;">    &lt;select id="content" onChange="return setMail()"&gt;</span><br /><span style="color:#0000ff;">    &lt;option value=""&gt;Choose A Communication&lt;/option&gt;</span><br /><span style="color:#0000ff;">    &lt;?php foreach ($communicationsRecords as $record): ?&gt;</span><br /><span style="color:#0000ff;">    &lt;option value = "&lt;?php echo $record['num'];?&gt;"&gt;&lt;?php echo $record['title'];?&gt;&lt;/option&gt;</span><br /><span style="color:#0000ff;">    &lt;/select&gt;</span><br /><span style="color:#0000ff;">    &lt;?php endforeach ?&gt;</span><br /><span style="color:#0000ff;">&lt;/div&gt;</span><br /><span style="color:#0000ff;">&lt;br&gt;</span><br /><span style="color:#0000ff;">&lt;div&gt;        </span><br /><span style="color:#0000ff;">    Content:</span><br /><span style="color:#0000ff;">    &lt;br&gt;</span><br /><span style="color:#0000ff;">   <strong> &lt;input type='textarea' name='content' rows='5' cols='50' id='requestedContent' class='form-control'&gt;&lt;?php echo @$_REQUEST['content'] ?&gt;</strong></span><br /><span style="color:#0000ff;">&lt;/div&gt;</span></p>
<p><span style="color:#0000ff;">&lt;script&gt;</span><br /><span style="color:#0000ff;">function setMail(){</span><br /><span style="color:#0000ff;">    // find the dropdown</span><br /><span style="color:#0000ff;">    var ddl = document.getElementById("content");</span><br /><span style="color:#0000ff;">    // find the selected option</span><br /><span style="color:#0000ff;">    var selectedOption = ddl.options[ddl.selectedIndex];</span><br /><span style="color:#0000ff;">    // find the attribute value</span><br /><span style="color:#0000ff;">    var mailValue = selectedOption.getAttribute("value");</span><br /><span style="color:#0000ff;">    // find the textbox</span><br /><span style="color:#0000ff;">    var textBox = document.getElementById("requestedContent");</span></p>
<p><span style="color:#0000ff;">    // set the textbox value</span><br /><span style="color:#0000ff;">    if(mailValue=="1"){</span><br /><span style="color:#0000ff;">        textBox.value = "&lt;?php echo $record['content'];?&gt;";</span><br /><span style="color:#0000ff;">    }</span><br /><span style="color:#0000ff;">}</span><br /><span style="color:#0000ff;">&lt;/script&gt;</span></p>]]></description>
          <pubDate>Sun, 27 Oct 2019 14:54:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244227#post2244227</guid>
        </item>
              </channel>
    </rss>
  