Searching for a way to extend validation on Jomsocial registration forms and a way to add a field with attached file on registration, I found a closed topic of this forum:
www.jomsocial.com/forum/pre-sales-questi...iles-attachment-file
which recommends Chronoforms to achieve this results.
When I try to download Chronoforms files I get a red alarm of antivirus Kaspersky - HEUR:Exploit.Script.Blocker
Is that the only plugin to extend the registration Joomla+Jomsocial or you can recommend another tested one?
Also I'd like to ask if I can go through this article to achieve it:
www.jomsocial.com/blog/developer-tips-ex...omsocial-form-easily
and if it places new form fields on the first or second part of the registration
Thank you!
Hi, Adry.
Chronoforms: as advised by user, this extension could be use to extend JomSocial registration. About virus in package you should ask Chronoforms developers.
Yes, developer trick could work, you can give it a try.
Hi, Adry.
We're sorry for that. Here are broken links:
documentation.jomsocial.com/wiki/OnFormSave
documentation.jomsocial.com/wiki/OnFormDisplay
Hi Michal,
Thank you for the corret links wich I went through, but actually it's not the solution I'm searching for since as I understand it's not talking about the registration form.
So please, allow me to start again.
I'm trying to extend Jomsocial registration form with 2 more fields: one for upload a file, and another one with a custom php validation (which will tell me if is a valid document number entered).
Can you address me from your point of view on a route to get this result?
Thanks a lot again!
Hi, Adry.
I'll ask our developers then.
Hi, Adry.
In this case you could use Chronoforms or ask for help a developer:
www.jomsocial.com/jomsocial-developers
.
It's all we can do in this stage.
Hi Michal!
I managed to get the result I needed, and I'd like to share here with anyone else is trying to do the same:
#1) Add your own fieds files customizing it with the new field type name and the new php validation as per your needs (I based my new files on your text.php )
components/com_community/libraries/fields/newfieldtype.php
components/com_community/libraries/fields/newfieldtype.xml
#2) Change files (that is a hack, so you will need to change it every time you upgrade JS)
Go to components/com_community/libraries/fields/customfields.xml and add entries for your new fieldtype.
Go to components/com_community/libraries/core.php and add the path to the your custom field code
'CFieldsNewfieldtype' => '/libraries/fields/newfieldtype.php',
Add it to /** * Autoload class */ static function autoload_libraries($classname) { $classes = array(
;)
Hi, Adry.
Thank you for sharing this.