• Resolved madhuka

    (@madhuka)


    I use CF7DTX to dynamically retrieve data and show it to the user. However I prefer to show this within <label></label>. I could use dynamic_text in combination with ‘readonly’ and custom css class to achieve this. But I have cases where I need to retrieve 2 separate fields and display them side by side like continuous text. When I use ‘readonly’, the values are shown in 2 separate lines. Any plan to include dynamic_label in this plugin?

    • This topic was modified 12 months ago by madhuka.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Without seeing the HTML + CSS, would it be possible to style the two readonly values to display on a single line? I could throw out suggestions if you can provide a sample of what the issue is (could link out to codepen or github gist if the site isn’t public).

    I tend to use bootstrap or something similar to create columns/rows inside my forms to display the individual form fields.

    Thread Starter madhuka

    (@madhuka)

    I want to show these in a single line: [dynamic_text parm-p1 readonly class:show-like-label “CF7_GET key=’p1′”] [dynamic_text parm-p2 readonly class:show-like-label “CF7_GET key=’p2′”]

    where:

    .show-like-label { border: none; background: none; outline: none; cursor: pointer; padding: 0; font-size: inherit; color: inherit; }

    My thought is that, if the plugin could output like <label> (p1 value) </label><label> (p2 value) </label> it would make the plugin more useful.

    Right now I am achieving the desired effect by using dynamic_hidden, and then using custom code to extract the value between value= and list= and appending this as <label>(extracted value)</value>. But this is not handy since I need to reinsert my code after every release.

    • This reply was modified 11 months, 3 weeks ago by madhuka.
    • This reply was modified 11 months, 3 weeks ago by madhuka.

    Alright, you asked and you got it! This has been added to version 4.4.0 ??

    I… ugh… didn’t write the documentation yet, but you’ll see as one of the purple buttons in the form editor and can use the form tag generator. Cheers!

    Thread Starter madhuka

    (@madhuka)

    Works well! Thanks a ton!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘dynamic_label’ is closed to new replies.