Skip to Content
0
Former Member
May 10, 2004 at 11:56 AM

Javascript Example isn´t working

32 Views

Hello

I´m trying to set the value of an inputField via Javascript. I found the following example in the pdk documentation:

Getting the inputField object in JavaScript:

function calculateCurrencyFromTo(){

var funcName = htmlb_formid+"_getHtmlbElementId";

func = window[funcName];

var inputfield = eval(func("currencyDisplay"));

// Now we have the inputField, so we can access it, for example set a new value

if (inputfield)

inputfield.setValue("100.23");

}

The only thing, that i´ve changed is the field id according to my field id.

I don´t have any clue why it isn´t working.

Do you have any ideas, or other solutions to fill an input field via javasrcipt

regards

Alexander