I'd like to play with order and layout of the address fields on the New Individual form. I understand that in the localisation setting s this can be achieved but I am not having any luck with the for a NEW individual/contact. Is there not a .php file that i can edit the HTML output and manually rearrange the order of the fields? Is this the best approach? Thanks, Joe.
I would recommend you create a little jQuery to move the fields around (something like you see here: template jQuery example)
And then place the created template with jQuery on the appropriate form (which will probably be CRM_Contact_Form_Edit_Address
) using the alterContent hook (something like what you see here: alterContext hook example
Although this is not exactly what you want, it shows the approach. Does that help or is the confusion only growing?
-
Confusion = increasing! To clarify what I am trying to do... I want to hide some fields and re-order some fields on the New Contact form/page: somesite.com/wp-admin/… I was hopng to do this via the UI but there does not appear to be a profile available that matches the fields on this page. Failing that surely there is a file hidden in the application somewhere that I can use to comment out or delete fields and move others around...? – jkobier Jan 5 '17 at 4:58
-
There is, my approach simply means you do not have to re-do that at every upgrade? – ErikH - CiviCooP Jan 9 '17 at 11:51
-
Sorry ErikH - what do you mean by "there is my approach"? Where is it - am I missing something? – jkobier Jan 19 '17 at 4:25
-
I mean the approach of creating an extension and using the alterContent hook – ErikH - CiviCooP Jan 19 '17 at 15:33
What you need could potentially be delivered purely by creating, or modifying, a Profile.
http://yoursite.org/civicrm/contact/add?ct=Individual
. @jkobier can you edit your question to be more specific about what you want to do? – Coleman Dec 14 '16 at 15:27