This topic is locked

get value from a list with a button

4/3/2019 1:05:41 PM
PHPRunner General questions
A
ayctech author

hello, how do I get the item value from a button in a list
try
var ctrlState = Runner.getControl(pageid, 'id_articulo');

alert(ctrlState.getValue());
var id_articulo = row.getFieldValue("id_articulo");

alert(id_articulo.getValue());

alert(id_articulo);
alert($('select[name^=value_idarticulo'+pageid+'] option:selected').text());// print empty
alert($('select[name^=value_id_articulo] option:selected').text());//it works but prints all values ​​if there is more than one list added
php

$record = $button->getCurrentRecord();

$result["articulo"]=$record["id_articulo"];

after

alert(result['articulo']);// print empty