@pgr, oh, ok. You mean to create a new field type.
In my case, I need to add the button near the “name” field in my custom module, and I think I can’t change the fieldtype of the field. or I’m wrong?
I don’t see why you can’t change the field type, or customize the existing field type.
Maybe Name is a special case of a field, because it doesn’t exist in the database (only First name and Last Name are there). I seem to recall that Name is defined in the vardefs as a concatentation of those? Not sure. Maybe there’s even a SugarField for it already…
Sorry, I try to explain better. name is the required field of my custom module.
And in this my custom module, I would like to add the button near the name field. The result that I’d like to reach is similar than the “copy” button in detailview for account.
So, How can I change the type of this field?
Hello @pgr, I think a custom field type is a solution not necessary (and not to easy to implement) for my goal. Maybe in the future for other needs.
I resolve using “links” element into array defined in detailvardefs, so my button appears in top-right position of record detail (above pagination). The button is not near my field, but for our purposes, that’s okay too.