• Resolved bhenselmann

    (@bhenselmann)


    Hello,
    I would like to predefine different texts in an input field (text area), depending on user-defined fields.
    I have tried to realise this with groups, but the conditions do not work within input fields.
    Alternatively, I have tried the dynamic fields plugin, but unfortunately this does not work with a text area but only with a simple text field.
    Does anyone have an idea how I could achieve this?
    Many thanks for any hints!
    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Hi Bernhard,

    Updating one or more textarea fields based on values in other fields can’t be done with this plugin, but it’s pretty straight forward to do with a bit of JavaScript.

    Simple example: https://conditional-fields-cf7.bdwm.be/form-tester/?hash=f22539f1c6bf5aed7e639e9f2810c65f

    Thread Starter bhenselmann

    (@bhenselmann)

    Hello Jules,
    Thank you very much for your quick reply.
    I don’t want to use Java Script here. Maybe I didn’t describe my problem well enough. The text in the text area should not depend on on user-defined fields but on custom fields from the article.
    I have now implemented it differently by including a php code (via shortcode) into the form, which assembles the text from text modules. It’s not very elegant, but it works.

    Thread Starter bhenselmann

    (@bhenselmann)

    resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text dependend on custom fields in text area’ is closed to new replies.