adding link to url field

Hi there how do i make a url field to link to this field in the products modules?
thanks!

IF I understand correctly, you want to make the value in the URL column clickable?

yep!

Simply modify the viewdef in custom/modules/yourmodule/metadata and add the following to your field:



'link' => true,

Thanks,

Will.

And run a Quick Repair & Rebuild in Admin -> Repair once done.

hi will i edited the url field in detailviewdefs and popupdefs but it doesnt seem to work

Are you wanting this to link to the actual URL or the record ?

What field type is the URL field in the screen shot ?

Ian.

Hi Ian - yes - i am using a relate field currently - i want the box to be come a search of the items within the products module - but it cant be autocomplete because i need a list of options with the URL apparent - so im hoping to use the field to perform a search of all relevant records in the products module.

Ah ok I think I understand what you are wanted. This will require a fair bit of coding to allow this as Suitecrm only has the popup search.

might be worth looking at the following links.

http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/03_Module_Framework/02_Metadata/Examples/Adding_QuickSearch_to_a_custom_field/

This addes the sqs object to a custom field however this is what the auto populate works on the relate field. This might open a few doors on being able to adapt this.

I dont think many will have done a task that you are looking for.

thanks Ian - to answer another question is it possible to embed the Products module search page as an iframe into another module?

I guess it depends what you plan to do with it and what page you are looking to embed it into, I cant see why you couldnt. you would need to override the view for the page that you are wanting to do that with.

Ian.

Hi Will that doesnt seem to work, ive added :
β€˜link’ => true,

to /custom/modules/AOS_Products/metadata
in listviewdefs.php and popupdefs.php
to the URL array and rebuilt it.

the link it makes just closes the popup