0

Programatically set image field content

Is it possible to set an image field using the attached file with built-in scripting functions?

ie, image = file(this, Name + ".png")

4 replies

null
    • CISOFT_Sarl
    • 4 yrs ago
    • Reported - view

    hi

    my way is in the field formula set :

    file(this, Name + ".png")

    • Thorn_Creative
    • 4 yrs ago
    • Reported - view

    I did that on a button, to test and the image just shows nothing. I have a button to get the image and one to set the field with the code, the image field stays blank.

     

    Screen Shot 2020-04-01 at 11.55.38 pm

    • CISOFT_Sarl
    • 4 yrs ago
    • Reported - view

    code in your button :

    Robot:= nameOfYourAttachedDocument.xxx

    • Thorn_Creative
    • 4 yrs ago
    • Reported - view

    silly me, I always forget the : when assigning.

Content aside

  • 4 yrs agoLast active
  • 4Replies
  • 757Views