[dev] Horde_Form_Type for HTML link
Jan Schneider
jan at horde.org
Thu Nov 10 13:45:28 UTC 2016
Zitat von Sebastian Birnbach <birnbacs at gmail.com>:
> 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/
More information about the dev
mailing list