javascript - CRM 2011 Set static values to same option set in two different forms -


i have 2 lead forms created. 1 office furniture product line , other home furniture product line. now, i've field set option type values office furniture , home furniture. when user chooses home furniture lead form, form must able set home furniture static value , read-only. similarly, if office furniture lead form, office furniture must set static value read-only. in way, want take away editing capability field user. i'm facing challenge here because same field referenced in both forms. if set home furniture default value , make read-only, office furniture lead form displays same value. if me script assign 2 different values based on lead form selection, it'd great help.

i able show results through this.but wrote 2 different functions 1 each form

function homefurniture() { xrm.page.getattribute("new_lineofbusiness").setvalue(100000000); } 

on other form inserted same function

function officefurniture() { xrm.page.getattribute("new_lineofbusiness").setvalue(100000000); } 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -