locked
convert my new email field to a link RRS feed

  • Question

  • Hi

    I have created a new field called "pa_testemail"

    I am trying to convert this field to an email link when it displays.

    I have used the function shown below - however I want the email link to be inside the textbox and editable.
    Is there some other script around I could use?

    function ConvertToLink(fldName)
    {
    var btn = "<a href='javascript: void(0);' onclick=\"window.open(\'http://www.google.com\', \'windowname1\', \'width=600, height=650\'); return false;\" style='color:blue;text-decoration:underline !important'>Test Account</a>";
    var ctrl = Xrm.Page.ui.controls.get(fldName)._control;
    // Add the new button
     ctrl.get_element().innerHTML += btn;
    /Hide the textbox
    ctrl.get_element().firstChild.style.display = 'none';
    }

    Tuesday, September 3, 2013 1:45 PM

Answers

  • Hi

           on field creation select Type "single line of text" and Format "URL" or "Email"

    like

    • Marked as answer by katiemackie Tuesday, September 3, 2013 2:00 PM
    Tuesday, September 3, 2013 1:56 PM