Display field as plain text (not in a text box)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2013 10:08 AM
I would like to display the contents of a field as plain text in the incident form and not in a text box. This is useful as our technicians use a click to dial plugin in their browsers. This plugin does not work with the numbers in a text box.
I managed to achieve some success (see below) by using a text annotation in the form and entering some css to mimic the look of the other field labels.
[flickr-photo:id=9102300668,size=m]
<span style="padding: 4px 101px 5px 6px; background-color: rgb(192, 192, 192);">Phone:</span><label> ${incident.caller_id.u_phone}</label>
However, I think this is a very ugly way of doing it and I can't get the grey box to match up exactly due to the
tag generated by the annotation it's self. Also the display is browser specific and the data does not update when a new caller is selected, the form must be saved first. Does anyone know of a simpler/better/other way of achieving this? Thanks Matt |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2013 11:22 AM
Use an onChange to make the field value switching dynamic when the caller changes. Also, why not just scrape the regular phone field and place it into the description? If the dialer plugin can scrape the phone # from the description it should work and is no more redundant then what you've already done by adding another field.
Of course if it doesn't scrape a number in the description then i'm not sure. Which dialer plugin is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2013 12:55 PM
I'm curious to know what dialer plugin it is as well.
You might be able to add a new HTML field to the form and build a URL based on what the dialer plugin would create with the caller's phone number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2013 05:08 AM
Thanks for the responses. The plugin is called Telify: http://www.codepad.de/en/download/firefox-add-ons/telify.html we have it configured to generate callto: links which are picked up by another application linked into our VoIP system (CRM Connect). Unfortunately the plugin will not scrape any numbers from plain text input boxes so putting them in the description will not work. Also I don't think I can use an onChange script on the current item as it is an annotation and not a field.
Thanks for the idea Justin, using a URL field with 'callto:' proceeding the number does work. However, having callto displayed in front of every number is a bit of a drawback.
On second thought what I would like to do is have an icon next to all fields of type phone number, similar to the reference icon next to reference fields. When clicked the icon would connect to the callto:# link. Does anyone know if it is possible to create custom icons next to fields of a certain type?