I'm fairly new to Sugarcrm community edition 6.5, I would like to know how to add autocomplete to a custom field. I have a list of GP Surgeries and want the GP surgery field to autopopulate when the user starts typing. Thanks!
You have to write code for it. You can write it into view.edit.php file.
You should write it after display method of editview is fired.
Have a look at this example. Based on that you can go for your custom field.
Thank you for your reply. I am a complete novice, I'm not sure where to start with code!
I am using sugar for a surgery also. I created a Gp list as a separate module. Then do a custom field relate / relationship from that to your GP module. This should help. Also be good to know how else you have yours set - share (surgery ) ideas.
Include JS in your editview.
Bind event on "Borough" field.
Prepare dropdown lists for "GP Surgeries".
Change dropdown values according to your requirement.
For multi-select "GP Surggeries" you need to make your field multienum type.