Keyword

[HOW TO] Extrafield radio buttons validation doesnt exist

  • Alan Sparkes
  • Alan Sparkes's Avatar Topic Author
  • Offline
  • Premium Member
More
11 years 4 months ago - 11 years 4 months ago #113237 by Alan Sparkes
Having spent several hours trying to update K2.js validation for radio butons I have to admit defeat today.

Scenario:
-extrafield radio selection
-user must make one choice only and it must not be selected on load

THe issues are:
-radio buttons - one option is selected by default when set to required or otherwise
-validation is really difficult in the k2.js code [well at least for me]

Is this addressed in SVN? : :(

Please Log in or Create an account to join the conversation.

  • Alan Sparkes
  • Alan Sparkes's Avatar Topic Author
  • Offline
  • Premium Member
More
11 years 4 months ago #113238 by Alan Sparkes
Replied by Alan Sparkes on topic Re: Extrafield radio buttons validation doesnt exist
haha its not midnight yet and I have beaten k2.js into submission B)

If anybody is having issues validating extrafields that are of the type radio buttons then try the attached k2.js.
It goes in 'media/k2/assets/js'

Its tested with 2.5.x and the file difference with 2.6..x seem negligible

Comments /changes are marked . I have added about 30 lines of jquery/javascript

Tested on IE8 /FF 19 / Chrome and up
Attachments:

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum