Re: Horde_Form_Type for HTML link

Jan Schneider <[email protected]> Thu, 10 Nov 2016 13:45:28 +0000
Newsgroups gmane.comp.horde.devel
Message-ID <[email protected]>
Zitat von Sebastian Birnbach <[email protected]>:

> I whish to add a reference to an address book entry (in turba) to an object
> I store in the backend. This is how such a link looks like:
> http://192.168.0.182/turba/contact.php?source=localsql&key=JSDAaH1hYRIbVrzxvUXg1o0
>
> Is there a better horde_form_type for this than 'text'? I tried 'link' but
> could not get it to display anything. Ideally the form element would
> display a symbol when rendered inactive and a text if rendered active.
>
> Before I shall implement my own form_element I wanted to make sure I cannot
> use anything existing.
>
> Kind regards
>
>   Sebastian

'link' is the correct type, but you cannot edit it. So you either need  
to use a different type depending on whether you render the form  
active, or you need to indeed create your own form element (extending  
the 'link' element).

-- 
Jan Schneider
The Horde Project
http://www.horde.org/

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]