• Resolved simeonsamarium

    (@simeonsamarium)


    Hey I am just getting started, and I am able to write to core tables and managed fields,
    In the first case i am trying to write to a custom table called lead:

    {% form entity="zwp1_lead" mode="create" recaptcha=false %}
    
    <form>
    
        <div class="form-group">
    
            <label>
    
                First Name:
    
                <input class="form-control" name="zwp1_firstname">
    
            </label>
    
        </div>
    
    </form>
    
    {% endform %}
    
    

    I then just get the error ‘zwp1_lead’ not supported.

    When I try to write to a custom field in the contacts table called x it doesnt write to that field, but all the other standard fields:

    
    {% form entity="contact" mode="create" recaptcha=false message = "Thank for submiting we will get back to you soon" %}
    <form>
        <div class="form-group">
            <label>
                First Name:
                <input class="form-control" name="firstname">
            </label>
        </div>
        <div class="form-group">
            <label>
                Last Name:
                <input class="form-control" name="lastname">
            </label>
        </div>
        <div class="form-group">
            <label>
                X:
                <input class="form-control" name="cr212_x">
            </label>
        </div>
        <div class="form-group">
            <recaptcha>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary">Send</button>
        </div>
    </form>
    {% endform %} 

    Assistance would be appreciated, really like the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter simeonsamarium

    (@simeonsamarium)

    In the first code block I forgot to add the submit button but after submitting the form I get the Error <zwp1_lead” Not Supported>:

    <button type="submit" class="btn btn-primary">Send</button>
    Plugin Author alexacrm

    (@alexacrm)

    @simeonsamarium

    1. Did you flush the cache after creating custom table and updating metadata?
    2. Does the app user used to connect have permissions to access the table?

    If both answers are yes then please download the log file and send it to [email protected]

    Thread Starter simeonsamarium

    (@simeonsamarium)

    Hey Alexa Support, Clearing the cache in your plugin fixed the issue thanks so much for your assistance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘writing to custom table or field’ is closed to new replies.