• will2016

    (@will2016)


    Hello,

    I have a form with an optional field. I use a placeholder to let the user know what to type in that field.

    When the user does not type anything into that field, the placeholder gets added to the database.

    Is it possible to not have that happen? The placeholder is important so the users put the proper info there when it is necessary, but its not always necessary, and the placeholder is useless info in the database that we have to deal with and delete on the spreadsheet end.

    Thanks

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

    (@msimpson)

    I’m surprised that is the case. Are you setting the value of the field as well as the placeholder?

    CFDB doesn’t know what your form looks like or what placeholder values you have. It receives the information that the form sends back to the server which is just a list of field names and values. You would have to ensure that the form is not sending the placeholder value when it is submitted.

    Thread Starter will2016

    (@will2016)

    I have “default as placeholder” checked, and I have a sentence in the default field. I don’t see where a value can be set? It is a text area box.

    I have looked at some of the documentation, but I don’t quite understand what value I would have to give the placeholder to have it be ignored as text data by CFDB, or where to put that value.

    • This reply was modified 8 years ago by will2016.
    Plugin Author Michael Simpson

    (@msimpson)

    I assume that “default as placeholder” mean to make the default value of the field be the same as the placeholder if the user does not enter anything. Try turning that off.

    Thread Starter will2016

    (@will2016)

    Well there is a section called “Field Modifiers” The first field is called “default”. You can type any text in there and it will appear in the field, and then on the same line after that there is a checkbox called “Default as placeholder”. Thus, whatever you type in the default text box will become the placeholder.

    Thank you for your reply, Michael. I think I need to post this on FSCF, I did not realize the relationship between cfdb and the form, and as I learn more about how these plug ins interact I’ll be sure to share my positive results if they apply here in case it helps someone else, or maybe shortens their learning curve.

    Plugin Author Michael Simpson

    (@msimpson)

    Right, so I think you want to set a placeholder but NOT set any default (if possible in the form builder).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Placeholders added to Database’ is closed to new replies.