Skip to main content

Modifier :alt

Image alt text. Example: {Headshot:135:alt} gives Portrait of Grace Hopper. On the test form, this field is {Headshot:135} (Post image).

About

ProductGravity Forms
RequiresGravity Forms 1.9 or later
In the pickerWhat to show, for Post image fields
CombiningUse it alone. With other modifiers, it is ignored.

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutputWithout the modifier
{Photo:19:alt}A vintage typewriterhttp://fixture.gravitykit.test/wp-content/uploads/gravity_forms/501-ce8740343b854b96e037e97f8dfef93f/typewriter.jpg

Works on

Form fields: Post image.