Show the url element from file upload control in Image control.
It's possible send the url return, from upload control, to a image control (under javascript for example), to display the image in image control?
-
Hi Leandro,
Yes, it's possible to achieve your use case using AgilePoint eform helper methods called "getFieldValue & setFieldValue"
Sample Code Example for getFieldValue:
var options = {};
options.fieldId = 'TextBox1';
eFormHelper.getFieldValue (options, function (result) {
if (result.isSuccess) { //check if is success
console.log (result.data); //logs the data holds the found control’s value
}
else {
console.log(result.error); //logs the error
}
});
Sample Code Example for setFieldValue:
var options = {};
options.fieldId = 'TextBox1';
options.value = ‘Hello World’;
eFormHelper.setFieldValue(options, function (result){
if (result.isSuccess) { //check if is success
console.log(result.data); //logs the data holds empty object
}
else {
console.log(result.error); //logs the error
}
});
Thanks
請登入寫評論。





評論
6 條評論