locked
CRM 4 : Trying to build a Custom Button that have to change label and the different labels should call a different URL. RRS feed

  • Question

  • Hello,

    I am trying to create a button that changes label and calls another URL in Dynamics CRM 4.

    When I put in the Javascript I get a syntax error on the following piece of code: 

        else {
            if (crmForm.all.statecode.DataValue == 0) {
                gConvertTextFieldToButton('dsm_bwreportbutton', 'Create Quote in BW', '200px', openBWCreateURL, 'Create Quote in BW');
            }
            else {
                gConvertTextFieldToButton('dsm_bwreportbutton', 'View Quote in BW', '200px', openBWViewURL('Quote'), 'View Quote in BW');
            }
        }

    Could anyone please help? Thanks in advance!

    Greetings Dennis

    Saturday, October 12, 2013 3:37 PM