locked
Alert Tab to be displayed when I click ok RRS feed

  • Question

  • I Write a java Script code as shown below but want when the user cliks on OK button to show the client the Tab where the Alert is found so

    how can I write java script for this......... any help ?


    if(crmForm.all.alert.DataValue)
         return alert("An alert is set on this account.");

     

     

    Friday, October 15, 2010 4:55 PM

Answers

All replies

  • Hi,

     

    I'm not sure whether I understand you. Would you like to set focus on the tab where the field that generates the messagebox is located?

     

    Kind regards,

    Kuba


    -- Kuba Skałbania, Netwise
    Friday, October 15, 2010 5:24 PM
  • Is it something you want to show a tab onclick the OK button of the alert?
    yes.sudhanshu

    http://bproud2banindian.blogspot.com
    http://ms-crm-2011-beta.blogspot.com
    Friday, October 15, 2010 5:25 PM
  • Thanks Kuba,

    what I want is when I open The account I will get The alert as I coded in the Java Script but when I get the Alert and Click on Ok I want to jump and go to the Tab that Holds the Alert message to see the detail of the alert in the description of the that Tab.

     

    The tab that Holds the Alert Description is the thired Tab in the Form 

     

    Thanks

     

    Friday, October 15, 2010 5:48 PM
  • yes, I want to show a tab when the I click the OK butten of the Alert ( show the 3rd tab from the form)

    The Alert will pop up when I open the account Form, What I want is when I click on the OK butten want to jump to 3rd tab and see the detail information about the tab.

     

    Thanks

    Friday, October 15, 2010 5:58 PM
  • Hello.

    It seems that you should use following code:

    if(crmForm.all.alert.DataValue)

    {
         alert("An alert is set on this account.");

         crmForm.all. tab<number>Tab.click(); //<number is order number of tab - 0, 1, 2, 3>

    }


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Friday, October 15, 2010 7:30 PM
    Moderator
  • Thanks it works
    Friday, October 15, 2010 11:00 PM