ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF Form and odd error

March 24, 2011 10:22pm

Subscribe [4]
  • #1 / Mar 24, 2011 10:22pm

    fanderson

    899 posts

    I am building a SAEF Form to ease entry for non-technical users on a site and have run into a very unusual error message.

    The error:

    The custom field provided was not found in the system.

    I am using the following coding style:

    {exp:weblog:entry_form weblog="annual_report" return="plans/annual_plan"}
    
    <input type="hidden" name="field_ft_126" value="none" />
    <input type="text"   name="field_id_126" value="" />

    I am running EE 1.7.0
    Build:  20101018

    This error prevents the page from loading. Any help figuring this out would be appreciated.

    Thanks.

  • #2 / Mar 25, 2011 3:01pm

    Sue Crocker

    26054 posts

    Hi, Forrest.

    Do you actually have a field_ft_126 and field_id_126?

  • #3 / Mar 25, 2011 3:02pm

    fanderson

    899 posts

    Hi Sue,

    Yes, I do. I checked all the field IDs. I am running MSM with several sites so there are lots of custom fields.

  • #4 / Mar 27, 2011 6:35am

    Sue Crocker

    26054 posts

    What kind of field is this, and what reason is there for having them hidden?

  • #5 / Mar 27, 2011 3:27pm

    fanderson

    899 posts

    Hi Sue, I may be wrong, but it was my understanding that in addition to the standard input that maps to the field_id that you also had to have a hidden field for the formatting. I am totally open to the correct way of doing this so please share.

    I tried using the standard SAEF form, but that limits the control over displaying the input fields in a styled form.

    Thanks,

    Forrest

  • #6 / Mar 28, 2011 9:24am

    Sue Crocker

    26054 posts

    Hi, Forrest.

    Cam you post your whole SAEF please? If you remove those two fields, does the SAEF work? There shouldn’t be a problem in theory with what you’re doing.. you didn’t mention what kind of field this was.

  • #7 / Mar 28, 2011 10:13am

    fanderson

    899 posts

    Hi Sue,

    I have tried every possible way of doing this, including removing and renaming all the custom fields. The form is attached. I would really appreciate knowing the correct way to do this.

    Thanks.

    Forrest

  • #8 / Mar 28, 2011 5:32pm

    Sue Crocker

    26054 posts

    So 125 works but 126 doesn’t.. if you skip 126, does 127 work? I’m not seeing anything out of whack here.

    What I’d do is the following:

    Use the SAEF form in the docs, view the source and make sure the fields you expect to see are in there.

    http://expressionengine.com/legacy_docs/modules/weblog/entry_form.html

  • #9 / Mar 28, 2011 5:34pm

    fanderson

    899 posts

    Hi Sue,

    I’ll give it a try this evening and let you know how it goes. Thanks for the help.

    Forrest

  • #10 / Mar 28, 2011 10:47pm

    fanderson

    899 posts

    Hi Sue,

    I did as you instructed, which was very helpful just from an understanding point of view - being able to see the field_id_ mapping and all that.

    I confirmed that field_id_124 through field_id_141 are active, however, when I revert back to my custom form, it still creates the error saying the custom field does not exist.

    I have attached a copy of my form and the source view from the standard form. I apologize for being such a bulldog about this, but I would like get to the root of this and also be able to use a custom SAEF.

    Please let me know what you think.

    Thanks,

    Forrest

  • #11 / Mar 29, 2011 4:42pm

    Brandon Jones

    5500 posts

    Hi Forrest,

    As the built-in SAEF is deprecated, have you given SafeCracker a try instead?

  • #12 / Mar 29, 2011 4:46pm

    fanderson

    899 posts

    Hi Brandon,

    I definitely considered this but unfortunately, this site is still running on 1.7.0.

    Thanks though.

    Forrest

  • #13 / Mar 30, 2011 7:58am

    Greg Salt

    3988 posts

    Hi Forrest,

    Can you please confirm that field_id_126 is assigned to the same site as the rest of the fields you are trying to populate? You can definitely post to that field in a CP publish form?

    Cheers

    Greg

  • #14 / Mar 30, 2011 10:01am

    fanderson

    899 posts

    Hi Greg,

    Yes I have confirmed that field_id_126 is active and part of that site and does take values when entered through the CP.

    Thanks,

    Forrest

  • #15 / Mar 30, 2011 6:34pm

    Sue Crocker

    26054 posts

    One more question, and then we’ll go in and take a look around…

    Is there an .htaccess at play here?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases