Comments

6 comments

  • Avatar
    AgilePoint NX Support

    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

    0
    Comment actions Permalink
  • Avatar
    Leandro de Oliveira Fernandes

    Thanks for the repply.

    Ok about the get/set values.

    I've try to put the "url" parameter, from the file upload control, to the image control, in load event of the form (from rule builder), but not worked.

    i go to try in other ways, like javascript for example.

     

    0
    Comment actions Permalink
  • Avatar
    Leandro de Oliveira Fernandes

    It's possible get the "url" parameter from file upload control, in javascript?

    0
    Comment actions Permalink
  • Avatar
    Leandro de Oliveira Fernandes

    Hi, i'm able to get the url parameter, from file upload control, but i'm still not able to put this value in image control.

    The Image control show's "image is missing".

    Anyone can help.?

    0
    Comment actions Permalink
  • Avatar
    Leandro de Oliveira Fernandes

    Great, i found the answer change the Google Drive URL, using the image id and put into image control.

    0
    Comment actions Permalink
  • Avatar
    AgilePoint NX Support

    Good to know. Thank you for letting us know the result.

    0
    Comment actions Permalink

Please sign in to leave a comment.