I’m not sure what the real problem is. The first thing I suspected was the file permissions but you say all is correct there. (Check one more time just in case something is missing.)
If it doesn’t work, the option will be to add it manually by modifying the field definition here:
thanks vijay1992 but the issue is not related to the view.
BrozTechnologies, thank you for your answer and sorry for the late reply:
Yes I confirm file permission is fine
After trying several combinations, we were able to reach the result, but we have no idea how (and are unable to re-do it), so the problem still exists.
so do I have to create a file inside the directory custom/Extension/modules/YOUR-module/Ext/Vardefs with the code you wrote? should that file have some special name/extension?
omg, the fatal was caused by an empty line in the file custom/Extension/modules/Leads/Ext/Vardefs/myfile.php, so yes, BrozTechnologies , you are perfectly right: I’ve added the following:
Side note: then I saw that if I edit again in Studio, a new file is produced, that will override my settings: custom/Extension/modules/Leads/Ext/Vardefs/_override_sugarfield_lead_source.php so I see that I just need to remove it!
So, I finally found out the perfect solution: I just had to remove the old custom/Extension/modules/Leads/Ext/Vardefs/_override_sugarfield_lead_source.php the go back to the Studio and just setup as I need, then it works, without the need of a custom file: this means, with no doubt, that
our web changes in studio, create (or created in the past) a wrong: custom/Extension/modules/Leads/Ext/Vardefs/_override_sugarfield_lead_source.php, so to reset, we just have to remove the file and do changes again in Studio (web).
I suspect that the web JS (of php) code that the editing of the field in studio has some issue (maybe just with our browser? Firefox): I suspect this since sometime when I save changes, the interface goes back to the edit where I see changes applied: some other, when I hit save, I go back to the fields’ list and stay there.
Anyhow, this is solved, that you so much to BrozTechnologies for the great tip!