Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Invalid data error in webforms

Help
2010-03-06
2013-05-29
  • This was posted by pankaj.khurana

    Hi, I am using vtiger 5.1.0 version.

    I am trying to implement the webform example. Code is described below:

    Webforms.config.php

    $enableAppKeyValidation = false;
    $defaultUserName = 'admin';
    $defaultUserAccessKey = '*****';

    $defaultOwner = 'admin';
    $successURL = '';
    $failureURL = '';

    post.php

    <form method="POST" action="http://myserver/vtigercrm/modules/Webforms/post.php" name="test" >
    <input type="hidden" value="Leads" name="moduleName" />
    <table>
    <tbody>
    <tr>
    <td><label>Last Name</label></td>
    <td><input type="text" name="lastname" value="" /></td>
    </tr>
    <tr>
    <td><label>First Name</td>
    <td><input type="text" name="firstname" value="" /></td>
    </tr>
    <tr>
    <td><label>Company</td>
    <td><input type="text" name="company" value="" /></td>
    </tr>
    </tbody>
    <table>
    <input type="submit" value="Submit" />
    </form>

    I am getting this error
    Failed to add entry in to vtiger CRM.
    Error Code: WEBFORMS_INVALID_DATA
    Error Message: data provided is invalid

    I have tried other alternatives but i am unable to resolve this please help me

    Regards,
    Pankaj


    click (http://forums.vtiger.com/viewtopic.php?t=30872) to go to the post on vtiger forums