locked
MSCRM 2011: URL clickable RRS feed

  • Question

  • Hi,

    I have created one Attribute URL Link on the Account entity which is the datatype as URL(new_urllink).
    I placed this attribute on the form. As per my requirement field is read-only I have changed the properyt of the field as  read-only true.

    Now my concern is I was unable to open the link by cliking on it.

    How to write a Jscript to enable the clickable functionality of a read-only attribute(datatype = URL).

    Can someone help me on this it will be appreciated

    Thanks,

    • Edited by Rahul-22 Thursday, May 15, 2014 5:50 AM
    Thursday, May 15, 2014 5:50 AM

Answers

  • Thanks for the quick response, Payman Biukaghzadeh.

    I'm sorry I was unable to open your link.

    I have created the below function and calling that function on load of the entity.

    It resolved my isssue . Thanks for your help.

    function URLLink(myfield) {
        Xrm.Page.ui.controls.get(myfield).setDisabled(false);
        eval('document.all.' + myfield + '.contentEditable = "false"');


    }

    Thanks,


    Thursday, May 15, 2014 9:18 AM

All replies

  • Hi,

    Did you try this post of Jason? He has enabled the field but set the submit mode to never. I think it could solve your issue.


    Iranian Dynamics CRM Association | انجمن متخصصان ایرانی

    Thursday, May 15, 2014 6:20 AM
    Moderator
  • Thanks for the quick response, Payman Biukaghzadeh.

    I'm sorry I was unable to open your link.

    I have created the below function and calling that function on load of the entity.

    It resolved my isssue . Thanks for your help.

    function URLLink(myfield) {
        Xrm.Page.ui.controls.get(myfield).setDisabled(false);
        eval('document.all.' + myfield + '.contentEditable = "false"');


    }

    Thanks,


    Thursday, May 15, 2014 9:18 AM