Default image in image field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    Default image in image field

    As the title says. Is it possible somehow to have a default image in an image field?
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Probably the easiest way is to set a formula like this:
    Code:
    ifThen(
        entity\isNew(),
        imageId = '5f9be8a19752b2880'
    );
    imageId - in my example my image field called 'image'
    5f9be8a19752b2880 - image id (this image should be already uploaded to the system to be able to get its ID).

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #3
      Maximus , Hi, thank you, worked immediately.

      Comment

      Working...