This topic is locked
[SOLVED]

 field label control

1/27/2011 4:47:17 PM
PHPRunner General questions
D
danaci author

is possible field label control on java on load event?
example
var ctrlfirstname = Runner.getControl(pageid, 'firstname');

var ctrlsecondname = Runner.getControl(pageid, 'secondname');
ctrlfirstname.on('change', function(e){

if (this.getValue() == 'John'){
ctrlaecondname.hide();

ctrlsecondname.setValue('');
how to hide secondname label ????
}

else

{
}

});

Sergey Kornilov admin 1/27/2011

There is no support for this kind of functionality in PHPRunner however you can do that manually.
You'll need to enclose field label in a DIV and show/hide it manually.

See example here: http://xlinesoft.com/phprunner/docs/add_folding_section.htm

D
danaci author 1/28/2011

thnx admin for reply.