• I’ve added a snippet to try to fill in the value of a hidden form field thus

    <input name=”custom webpage” type=”hidden” value=[wbcr_php_snippet id=”15311″] />
    <input name=”custom website” type=”hidden” value=[wbcr_php_snippet id=”15313″] />

    But the (php) snippet doesn’t execute, so the value remains as the litteral [wbcr_php_snippet id=”15313″]

    If I move the snippet out of the <form>…</form> tags, then it executes correctly.
    Is this a limitation of the snippet or something I’ve not configured correctly ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Temyk

    (@webtemyk)

    Hello.

    Where do you insert this shortcode? Can you show a screenshot?

    Thread Starter david_navigator

    (@david_navigator)

    Shortcode

    [wbcr_php_snippet id=”15311″] = Hello World

    This works correctly in a regular text block e.g

    Design side:

    <p>[wbcr_php_snippet id=”15311″]</p>

    Generated HTML client side:

    <p>Hello World</p>

    but if I add the shortcode to an INPUT tag, it doesn’t expand in a similar way

    Design Side:

    <input name=”custom webpage” type=”hidden” value=[wbcr_php_snippet id=”15311″] />

    Expected Generated HTML client side:

    <input name=”custom webpage” type=”hidden” value=Hello World />

    Actual Generated HTML client side:

    <input name=”custom webpage” type=”hidden” value=[wbcr_php_snippet id=”15311″] />

    Plugin Support Temyk

    (@webtemyk)

    The shortcode mechanism is a built-in WordPress feature. Therefore, the problem is not in our plugin. It is quite possible that this is a bug in the visual editor

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Snippet doesn’t work in form’ is closed to new replies.