- This topic has 2 replies, 2 voices, and was last updated 3 weeks, 5 days ago by .
I am using the MB Blocks to create content in Gutenberg. I have created a block to enter content in edit mode with one of the fields of type 'text' and I use the attribute 'after' to create HTML content to display after the text. Is there any possibility that this custom HTML attribute was dynamic based on the content entered in the associated text field? for example, create a dynamic hyperlink using the a or link tags taking into consideration the value of the text field entered manually in edit mode?.
[ 'id' => $prefix . '_test_text_field', 'type' => 'text', 'after' => __( 'custom HTML displayed after the field output that I would like to be dynamic', 'your-text-domain' ), ],
Any guideling will be welcome.
- You must be logged in to reply to this topic.