Archived topic
Adding a prefix to Dynamic Data
3 replies · Started by Tom on December 23, 2022
Hi,
I have a contact form in a Content Template.
Above the form I want to call the name of the person.
I wants it to say:
Contact: (Then have the name fill dynamically)
i.e. Contact: John Doe
I don't see any ability to add a prefix per se. Do I have to create a two-cell table?
Let me know - and thank you!
Hi there,
you could use a table or a grid block to do that.
Or if you want to use the GP Dynamic Data options ( from the Blocks toolbar ) it has a Before Text option.
We will be integrating that feature into GB soon, and then we will deprecate the GP methods.
Thanks Dave.
I thought the Dynamic Data options would work - and tried that first. But it only seems to accept "pre-defined" data an not any text. ( elementor has an option like this that was really nice (before OR after - you just typed the text in a field an Elementor inserted
it) ).
I will try the grid options as I don't know much about grids vs. tables. Thank you!
Theres two types of Dynamic Data, if you use the method shown here:
https://docs.generatepress.com/article/dynamic-data/
Then most options have the before text field.
