3 Replies · Latest reply on Jan 4, 2018 2:07 AM by Ankush Latawa

    Display View on Form -   OnLoad

      when i change STATE= CLOSED  Onchange then form is moving into  view "state_closed"   fine upto this point.

      if(!isLoading){

            //If the new value isn't blank

            if(newValue != '')

        {

               //Change to the 'ess' view if the Category is 'Hardware'

               if(newValue == 7)

      {

                  switchView('section','incident','state_closed');

               }

       

            }

      }

       

      from List of records when record is opened then  if state != closed then display Default View,              and

                                                                                          If state== closed then display view 'state_closed' view

       

      how can i  write OnLoad script?

      Thanks ,
      Chanikya Karthik