Function If Null: "New - City"
Function If Null: "New - City"
function getcityfielddata() {
//debugger;
if (Xrm.Page.getAttribute("new_city") != null) //verify the field is presented on the
form or not
{
if (Xrm.Page.getAttribute("new_city").getValue() != null)////if the field is
presented on the form then check the value of the filed whether value is there ot not
{
var cityValue = Xrm.Page.getAttribute("new_city").getValue();
alert(cityValue);
}
//bind the function to onsave if user forget to enter city then by defauly city value
should set
function setcityfielddata()
{
showandhidesectionsbasedoncustomer
function showandhidesectionsbasedoncustomer() {
debugger;
if (customertypename == "Individual") {
//here
if (customertypename == "Corporate") {