display image in interface

Certified Senior Developer

i want to display image in interface but i am unable to do that one can anyone help me for that,

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to RamGanesh

    {
      a!imageField(
        label: "Image",
        labelPosition: "ABOVE",
        images: {
          /*1. images in your enviorment*/
          a!documentImage(
            /*constant for image*/
            document:  cons!SP_AMAN_IMAGE
          ),
          /*2.images from the web*/
          /* - Any scheme other than http, https, ftp, tel, and mailto
             - Invalid URI characters if not already escaped
             - Empty text string*/
          /*image should be public*/
          a!webImage(
            source: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRZwuzq3op1o0SSKRTlfcTE0YtJbkEbuZeCsHPXuI1nlg&s"
    ),
          /*3. users image*/
          a!userImage(
            user: loggedInUser()
          )
        },
        size: "MEDIUM",
        isThumbnail: false,
        style: "STANDARD"
      ),
     
    }

Children