Fetching field id?

Comments

10 comments

  • Avatar
    sysberry GmbH

    Hi Kashish,

    can you elaborate more on different actions? If you add file upload control to your form you will set internal name of the control. This internal name is the id of the control (is unique).

    Regards,

    Alexey

    0
    Comment actions Permalink
  • Avatar
    Kashish Bansal

    While using the control in javascript how do i distinguish between the two file uploads. Is there any function by which we fetch the id or internal name of the control in javascript.?

     

    0
    Comment actions Permalink
  • Avatar
    sysberry GmbH

    If you open the settings of the file upload on the very first tab there is an internal name of it. There is eFormHelper JavaScript functions to help you to get files from the control ar add additional. This internal name is used.

    Regards,
    Alexey

    0
    Comment actions Permalink
  • Avatar
    Kashish Bansal

    This is what I am asking, which javascript function is used to fetch the id of the file upload controller. internal name is predefined by me only. To check in if condition I want to fetch the field id.

    So what function will be used to fetch the id of the field.

    0
    Comment actions Permalink
  • Avatar
    sysberry GmbH

    Hi Kashish,

    the internal name is the id. JavaScript functions:

    https://documentation.agilepoint.com/00/appbuilder/cloudjsGetUploadedFiles.html

    https://documentation.agilepoint.com/00/appbuilder/cloudjsAddFilesToFileControl.html

    is it what you want?

    Regards,

    Alexey 

    0
    Comment actions Permalink
  • Avatar
    Kashish Bansal

    No Alexey, in these function I have to pass the internal name as an parameter. But I want that function with which I get the internal name as an output.

    Suppose I don't know my internal name, so I want its internal name or fieldId through javascript. Now, how do I do that, how do I find the FieldId or internal name?

    0
    Comment actions Permalink
  • Avatar
    Kashish Bansal

    If still you are unable to get my question kindly contact me on 8920538570.

    0
    Comment actions Permalink
  • Avatar
    sysberry GmbH

    Hi Kashish,

    on file upload configuration there is an advanced tab and there you can find an id of the control. With that id you could get the internal name.

    Regards,

    Alexey

    0
    Comment actions Permalink
  • Avatar
    Kashish Bansal

    Could you please share me a link regarding that.

    0
    Comment actions Permalink
  • 0
    Comment actions Permalink

Please sign in to leave a comment.