• Hi,

    First my question:

    Is there a way to modify the standard “Subject” field to have it only contain the inputted user information? I could not figure out how to do it.

    Here is what is happening:

    I use this form for a different purpose than blogging, users send us data from it and it is stored in CFDB.

    The two standard fields “name” and “email” were fine but “subject” did not fit the needs for my form, so I renamed it in labels to “DBA”.

    What it does is pull in our business name title into the database field along with the inputted DBA information from our customers and so in CFDB every subject field of every record looks like this:.

    OUR BUSINESS NAME Contact: “DBA”

    We don’t need to have the business name in that field, all we need is the inputted customer info. I didn’t know it would occur like that.

    Since we are already up and running, I tried to move the standard field and replace it with a new field called “DBA”, but it appears that CFDB is happy with the “subject” title of that field and it does not recognize the new field that I replaced it with, as the customer input does not get received in the new field, only the business name and the word “contact:” are in there, so I switched it back.

    I think I might have to create a whole new database from scratch to do it, but I’m not sure yet.

    Thanks for any help with this.

Viewing 1 replies (of 1 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I don’t understand why you are getting unexpected information in a form field, but let’s get back to that.

    As for the name of the field, CFDB gets the field “name” not the field “label”. You may put a text label next to a field that says “DBA”, but the form field itself has its own name (not displayed) which is “subject”. The form submission tells CFDB that input field “subject” has a value. There is no mention of “DBA” since it is not a form input field, it is just display text. You need to edit that input field itself on your form to change its “name”.

    CFDB only gets what the form submission sends it. If your form submits field “subject” = “OUR BUSINESS NAME Contact: “DBA”” then that is what CFDB saves. CFDB doesn’t know what is in your form, it only knows what is posted back to the server by the form **submission**. And that is just a list of field1=value1, field2=value2, …

    So you form or web page is putting weird stuff into a field, then submitting that in the form submission, after which CFDB is just saving what it gets. You would need to fix this in the form itself.

Viewing 1 replies (of 1 total)
  • The topic ‘Standard fields “subject” field modification question’ is closed to new replies.