Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Required fields being bypassed when using Checkboxes/Radio buttons

  1. #1
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts

    Required fields being bypassed when using Checkboxes/Radio buttons

    This concerns the custom fields that are created by the admin for custom forms and applies to the newly released 3.0.5.1 and 3.0.5.2 versions only since the Checkbox and Radio button addition didn't exist in previous versions.

    The Radio button choice: It seems that the first option in a field list of Radio Buttons is always selected when the user is filling out the form, so if this field was set to Required and the user forgets to change it, well, the default selected option is pushed out to the final published ad without displaying an error since it was already selected (Yes I know, they're supposed to review their ads or they can go back and change it in their dashboard) but I'm talking about being proactive and dummy proof.

    Workaround: Choose Drop Down menu instead of Radio Buttons, it seems to not bypass the form validation action given the the default option is" --select-- and if it remains at that state, the form errors out forcing the end user to go up and make a selection.

    Checkboxes: any Checkbox based field in the form that is set to Required ends up not being validated and gets bypassed upon validation of the form.
    Workaround: revert back to providing multiple options within a Drop-down menu, although it limits the options of the advertiser.

    The checkbox issue is worst then the Radio button issue given its completely bypassed when it comes to validating the required fields.

    Ad reviewing in the WP admin panel:
    One other flaw noticed was when going through the ad approval process, I noticed some fields were not showing up yet when I click on preview the ad, I see those missing fields that the user filled up, they are also pushed when I approve them, so its not a big deal, oddly enough, among those invisible fields were "Description"...One thing I gotta state is that the forms I created are pretty big, composed of 30-40 fields, about 10 of them are Required, so...not sure if this is a WP limited display issue within the Admin panel or CP not communicating the fields correctly.


    While tackling the required fields subject, here's 2 more I found:
    http://appthemes.com/forum/showthrea...required+field

    http://appthemes.com/forum/showthrea...required+field

    http://appthemes.com/forum/showthrea...-Advertiser%29
    (For the Advertiser Contact form section within the Right-side bar widget)

    Adding a numeric validation and email structure validation is definitely a recommendation for future releases, in my case, I validate the ads before them being posted online, so its less of an issue.

    Not sure if this thread might help guide a workaround for the Checkbox required fields issue but its worth a mention just in case it can evolve into a manual fix until the 3.1 release.
    http://appthemes.com/forum/showthrea...required+field

  2. The Following User Says Thank You to Fanatic For This Useful Post:

    bellboy (December 11th, 2010)

  3. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  4. #3
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  7. #6
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #7
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  9. The Following 2 Users Say Thank You to scarstens For This Useful Post:

    bellboy (December 11th, 2010), Fanatic (December 10th, 2010)

  10. #8
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #9
    Member blogie's Avatar
    Join Date
    Jul 2010
    Location
    Philippines
    Posts
    73
    Thanks
    10
    Thanked 4 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  12. #10
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  13. The Following User Says Thank You to pepsi For This Useful Post:

    blogie (December 17th, 2010)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. One can let blank Required Fields !
    By laurencomarques in forum Help Using ClassiPress
    Replies: 13
    Last Post: December 27th, 2010, 01:09 PM
  2. Required vs non-required fields in Job submission
    By jns120 in forum JobRoller General Discussion
    Replies: 1
    Last Post: August 28th, 2010, 09:43 AM
  3. How to add a radio button in the custom fields?
    By aqua in forum ClassiPress General Discussion
    Replies: 2
    Last Post: July 13th, 2010, 09:58 AM