javascript - Using a Combobox to fill in a Text Field in Scribus -


i'm building pdf in scribus , stumbling through javascript (basic newbie here) go. i've ran issue , can't seem find answer.

i have combobox called producttype user selects product. once want text field called mortclause display proper clause. i've placed following code under combobox's action -> on blur -> javascript.

here have not working:

var ckselect = this.getfield("producttype"); var ckresult = this.getfield("mortclause");  if (ckselect.value === "va") {    mortclause.value = 'va clause'; } else if (ckselect.value === "fha") {    mortclause.value = 'fha clause'; } else {    mortclause.value = 'normal clause'; } 


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -