Results 1 to 6 of 6

Thread: afmcustom help

  1. #1
    jmartworks is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default afmcustom help

    I'm using the afmcustom download to allow files to be uploaded with the webtolead form. I have it working so far, but my problem is that the files should appear as notes/attachments in the lead. They are not showing there.

    Does anybody know of any fix for this?

  2. #2
    jmartworks is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default Re: afmcustom help

    OK, I've had a look at the mysql database and it seems the files are being uploaded and saved to the database, they're just not being linked to the lead.

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: afmcustom help

    The file afmcustom\filesubmission.php expects to be called from a webtolead-form which contains the two form elements campign_id and assigned_user_id.
    With this two values the last entered lead is searched in the database.
    To this found lead the attachments are linked - or not as in your case.

    regards
    hk

  4. #4
    jmartworks is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default Re: afmcustom help

    I've just checked my form created by web to lead...

    Code:
    <tr align="center">
                    <td colspan="10"><input type="button" value="Submit" name="Submit" class="button" onclick="check_webtolead_fields();" /></td>
                </tr>
                <tr>
                    <td style="display: none;"><input type="hidden" value="2fcab4eb-4b10-0a2e-ea0f-471f3aebea63" name="campaign_id" id="campaign_id" /></td>
                </tr>
                <tr>
                    <td style="display: none;"><input type="hidden" value="http://www.jmartworks.co.uk/crm/afmcustom/filesubmission.php" name="redirect_url" id="redirect_url" /></td>
                </tr>
                <tr>
                    <td style="display: none;"><input type="hidden" value="1" name="assigned_user_id" id="assigned_user_id" /></td>
                </tr>
                <tr>
                    <td style="display: none;"><input type="hidden" value="last_name;" name="req_id" id="req_id" /></td>
                </tr>
    It seems my campaign id and user id are in there so it should be working?

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: afmcustom help

    If the redirect_url is used in WebToLeadCature.php to generate a POST form submit, so it should be ok.
    Please check this in your log files.
    If not, use a own <form action="..." in your wetolead page

    hk
    Last edited by kuske; 2007-10-25 at 02:30 PM.

  6. #6
    jmartworks is offline Member
    Join Date
    Oct 2007
    Posts
    5

    Default Re: afmcustom help

    I think it's all set up correctly (although I'll admit I'm quite new to some of this stuff).

    Log file shows... (with all the rubbish taken out.

    "GET /site2/orderform2.html (gets order form)
    "POST /crm/WebToLeadCapture.php (posts order form to webleadtocapture.php)
    "GET /crm/afmcustom/filesubmission.php (then gets filesubmission.php)
    "POST /crm/afmcustom/uploader.php (and posts to uploader.php)

    I think all of that is correct.


    Now, what you said in your post made me think. I'm only going to be using one campaign and one user. So I manually edited filesubmission.php to have the campaign_id and user_id already typed in. It's not the best fix in the world but it IS working.

    So a big thanks for pointing me in the right direction
    Although I would like to get a proper fix sorted.

    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •