This topic is locked
[SOLVED]

How to fill a field with JaVascript ?

2/13/2024 6:46:28 AM
PHPRunner General questions
I
I author

Everyone, with the code below I make an "edit field" visible, but I want to fill this field with text. Which line of code should I add? Thanks in advance

var ctrl = Runner.getControl(pageid, "genre");
ctrl.on('change', function(){
if (ctrl.getValue()=='individuels')
{
pageObj.toggleItem("integrated_edit_field", false );

}
I
I author 2/13/2024

sorry :

pageObj.toggleItem("integrated_edit_field", false ); = pageObj.toggleItem("integrated_edit_field", true );

N
Nikos Tsikas 2/13/2024
I
I author 2/16/2024

Thanks.