This topic is locked

GetValue() on popup page

10/14/2023 4:25:57 PM
PHPRunner General questions
author

Is there a reason the following code wont work on a popup Edit page of a details table?
var ctrlStatus = Runner.getControl(pageid, 'Status'); var stat = ctrlStatus.getValue();I have used this same code on the Edit page of other tables at (JavaScript on Load event). But for a popup Edit page of a details table I get an error:
> Uncaught TypeError: Cannot read properties of undefined (reading 'getValue')

The field name is correct so what am I missing? Is it becuase its a popup form or is a details table?
Please help. Thank you