<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Update Form using the Form Generator plugin</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Update-Form-using-the-Form-Generator-plugin-80846</link>
        <description></description>
        <pubDate>Fri, 06 Mar 2026 13:33:51 -0800</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Update-Form-using-the-Form-Generator-plugin-80846" rel="self" type="application/rss+xml" />

                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240184#post2240184</link>
          <description><![CDATA[<p>Hi Guys, </p>
<blockquote>
<p>But when checking the "Allow editing existing records (advanced feature)"<br />and checking the "Require users to be logged in (requires Website Membership plugin)"<br />it does not give me the option of filtering by current user</p>
</blockquote>
<p>If you check those options it does it automatically, you don't need to add it again.  You can see this in the generated error checking code for that on the form: </p>
<p><code>  // ERROR/SECURITY CHECK<br />  $formRecord     = $FORM_RECORD_NUM ? mysql_get($FORM_TABLE, $FORM_RECORD_NUM) : [];<br /><span style="color:#ff0000;">  $userOwnsRecord = @$formRecord['createdByUserNum'] &amp;&amp; $formRecord['createdByUserNum'] == @$CURRENT_USER['num'];</span><br />  if      (!function_exists('fg_util_isPluginEnabled')) { die("You must activate the Form Generator plugin before you can access this page."); }<br />  else if ($FORM_REQUIRE_LOGIN &amp;&amp; !@$CURRENT_USER)      { die("You must login to use this form!"); }<br />  else if ($_IS_ADD_FORM &amp;&amp; !$FORM_ALLOW_ADD)           { die("Add record - access not permitted!"); }<br />  else if ($_IS_EDIT_FORM) {<br />    if      (!$FORM_ALLOW_EDIT)                         { die("Modify record - access not permitted!"); }  <br />    else if (!$formRecord)                              { die("Modify record - record doesn't exist!"); }  <br /><span style="color:#ff0000;">    else if ($FORM_REQUIRE_LOGIN &amp;&amp; !$userOwnsRecord)   { die("Modify record - you can only edit records you've created!"); }</span><br />  }</code></p>
<p>Hope that helps!  Let me know any questions.</p>
]]></description>
          <pubDate>Tue, 07 Feb 2017 19:22:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240184#post2240184</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240182#post2240182</link>
          <description><![CDATA[<p>Hi Kenny</p>
<p>That sounds ok to me.  I don't have a complete picture of your setup so there could be adjustments possible.</p>
<p>Is your current setup working for you?</p>
<p>If everything is working, I think you can just keep moving forward.</p>
<p>Let me know any questions.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 07 Feb 2017 09:08:54 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240182#post2240182</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240179#post2240179</link>
          <description><![CDATA[<p>Thank you Ross,<br /><br />I believe this is what I was needing. I left the other two commented out lines for others (and myself) in the future</p>
<p>// 'where' =&gt; 'createdByUserNum = '. mysql_escape($_REQUEST['num']), //filtered by whatever is passed in the url aka ?mypage.php?num=123<br />//'where' =&gt; "`createdByUserNum` = '222'", // filtered by what ever you enter in between the '' where the 222 is<br />'where' =&gt; whereRecordNumberInUrl(1). " AND createdByUserNum= '". $CURRENT_USER['num'] ."'", // filters by current user</p>
<p>The above filters the recordset by the current_user logged in.</p>
<p>If I made any error I would be more than grateful for any input.</p>
<p>regards</p>
<p>kenny</p>]]></description>
          <pubDate>Mon, 06 Feb 2017 10:26:34 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240179#post2240179</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240167#post2240167</link>
          <description><![CDATA[<p>Hi Kenny</p>
<p>Great. You've seen the options.</p>
<p>And what you are also finding is that hooking up Website Membership to Form Generator is going to require some manual coding.</p>
<p>Do you have an idea of how to set that up?</p>
<p>Get it as far as you can and let me know where you end up.  We can discuss it further once you get there.</p>
<p>Keep me up to date with how you are making out.</p>
<p>Thanks!</p>
]]></description>
          <pubDate>Thu, 02 Feb 2017 10:33:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240167#post2240167</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240166#post2240166</link>
          <description><![CDATA[<p>Yes Ross <br />I understand it allows update using the num aka <span>myForm.php?num=123</span></p>
<p>But when checking the "<span>Allow editing existing records (advanced feature)"</span></p>
<p><span>and checking the "Require users to be logged in (requires Website Membership plugin)"</span></p>
<p>it does not give me the option of filtering by current user</p>
<p> 'createdByUserNum' =&gt; (int) @$CURRENT_USER['num'],</p>

<p>Regards</p>

<p>Kenny</p>

]]></description>
          <pubDate>Thu, 02 Feb 2017 09:53:58 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240166#post2240166</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240165#post2240165</link>
          <description><![CDATA[<p>Hi Kenny</p>
<p>Thanks for posting.</p>
<p>The current version of Form Generator supports "edit" forms already.</p>
<p>Keep in mind that it's an advanced feature and requires some extra work beyond the basics of the code generator.</p>
<p>To get started, when you are in the code generator, make sure you check off the option for "Allow editing existing records (advanced feature)".</p>
<p>From there, copy and paste the code as you have been and get your basic input form setup.</p>
<p>By default, the form is always an "add" form. Let's say your form is called "myForm.php".</p>
<p>To change your form into an "edit" form, you need to use this URL: "myForm.php?num=123".</p>
<p>Just change the number at the end to match one of your existing record numbers.</p>
<p>Does that make sense?</p>
<p>I recommend starting with just this part.  Let me know how you make out.</p>
]]></description>
          <pubDate>Thu, 02 Feb 2017 09:45:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240165#post2240165</guid>
        </item>
                <item>
          <title>Update Form using the Form Generator plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240164#post2240164</link>
          <description><![CDATA[<p>Hi yea,<br />The form Generator plugin is all working well at creating forms, have you any idea as to when one will be able to update forms, as I don't have much use for it with only the option of inputting.</p>
<p>I understand you do not want to commit yourselves but even if you had a ballpark date is better than nothing.</p>
<p>I am aware you guys do private work but I do not want to go that direction, I just like to have an understanding as to when I can actually make use of the this great plugin.</p>
<p>cheers</p>
<p>kenny</p>]]></description>
          <pubDate>Thu, 02 Feb 2017 05:43:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240164#post2240164</guid>
        </item>
              </channel>
    </rss>
  