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
Post a Comment