Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author properwp

    (@properwp)

    No custom field ability quite yet but there will be in the future. Need to figure out the best way to allow for that and still be secure.

    Thread Starter jammy to go

    (@jammy-to-go)

    That would be cool…

    What about adding a random generated code onto the end of the custom field and validating it that way via sessions? Then the form would always be different.

    id=”my_custom_field_random_code

    Plugin Author properwp

    (@properwp)

    I use nonces in the plugin so I’m not worried about general nefarious form submissions but I want to make sure that the data is sanitized and stored properly per field. Not a hard task, just need to find the time to do it 🙂

    I want to require a person who enters their phone number in the phone number field to look something like this (777) 777-7777. The email field already inputs an error message if a person doesn’t input an “@”, and I would like to do the same for the phone number, but the form doesn’t allow it which means added code is required. I am not a php master and was wondering if anyone knew the added code to implement this feature.

    Plugin Author properwp

    (@properwp)

    James,

    Best way to do that is with JavaScript but it would be hard to explain correctly without experience there. I wouldn’t alter the plugin PHP since that would be over-written by future upgrades.

    PropeWp

    Would you be willing to consider implementing this feature in future upgrades. It would make it easier for me to read the entire phone number when the form is submitted as my eyesight is not up to par. It would also help those submitting the form to see if the made a mistake in one of the numbers/characters entered.

    Plugin Author properwp

    (@properwp)

    The problem there is that format is a US-specific format. If I start to introduce country formats, I’ll have to have them all.

    I understand. My area of expertise is HTML not PHP I wish I had learned that in college because it would definitely have helped out but due to my own disability to get that far without a tutor that could work one on one with me it would be impossible for me to get that far. I know that web developers charge a lot for their services and that is why I am grateful to WordPress as well as the companies such as yours that develop plugins to make it a lot easier to improve my website.

    Plugin Author properwp

    (@properwp)

    Speaking on behalf of everyone who submits open source code to the WordPress community … we’re happy to help 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ability to add custom fields to the form’ is closed to new replies.