Author Topic: Registration: userfield 'title' not validating??  (Read 1176 times)

livesource

  • Beginner
  • *
  • Posts: 3
Registration: userfield 'title' not validating??
« on: August 18, 2010, 07:25:22 am »
Hi all, my client needs the registration userfield 'title' to be selected by the customer for the registration form to submit.

The first value in the title select box is <option value="">none</option>

I have set the field to be required in the userfields manager but it does not seem to recognise that "" value as being empty.

I'm not having much luck trying to find any of the pieces of this select box or its values. What I would like to know most though is where the validation happens so I can change the if condition to something that actually works.

Thanks for any suggestions!

website: http://www.mariestopes.org.au/how-you-can-help
VM version: VirtueMart 1.1.4

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Registration: userfield 'title' not validating??
« Reply #1 on: August 18, 2010, 14:09:52 pm »
You have to modify function list_user_title in ps_html. Note: please use "user_class" to override this function.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

livesource

  • Beginner
  • *
  • Posts: 3
Re: Registration: userfield 'title' not validating??
« Reply #2 on: August 19, 2010, 03:34:05 am »
Thanks zanardi, I can now change the fields values.

I still need to find and edit the js function that validates this form. I can see it in firebug - submitregistration().

Do you know where it is in VM's file system?

Thanks again

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Registration: userfield 'title' not validating??
« Reply #3 on: August 19, 2010, 08:42:50 am »
I can't remember, but if you alread know the name of the function, just do a text search in /components/com_virtuemart. I'd start with js subfolder.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter