0

I created a form using channel fields and i'm trying to figure how to allow the WYGWAM features to display on the front-end so, the end-user can do some basic text formatting.

            {exp:channel:form channel="careers"
                form:role="form"
                form:data-toggle="validator"
                include_jquery="yes"
                datepicker="no"
                id="careers"
                return="careers/thank-you"
                logged_out_member_id="2797"
                preserve_checkboxes="yes"
                status="pending"
                dynamic_title="[careers_job_title]"
                rules:careers_job_title="required"
            }

This is the channel field that I'm trying to add the WYGWAM to:

<div class="form-group"> 
  <label for="careers_job_description">Job Description</label> 
  <textarea class="form-control" rows="5"></textarea> 
</div>
1
  • This is the channel field that I'm trying to add the WYGWAM to <div class="form-group"> <label for="careers_job_description">Job Description</label> <textarea class="form-control" rows="5"></textarea> </div>
    – kingk1974
    Commented May 27, 2015 at 1:43

1 Answer 1

0

As a guess you've not specified your WYGWAM field name you've created for the channel. Details here.

<div class="form-group"> 
  <label for="careers_job_description">Job Description</label> 
  <textarea class="form-control" name="{field:wygwam_field_name}" rows="5"></textarea> 
</div>

Not sure if you can just use {my_field_name} without the field: prefix.

Tag Pair:

{my_field_name}{/my_field_name}

Alternative:

{custom_fields}
    {if textarea}
    <textarea id="{field_name}" name="{field_name}" dir="{text_direction}" rows="{rows}">
        {field_data}
    </textarea>
    {/if}
{/custom_fields}
1
  • Thank you Peter! With your input I was able to get it working. My code looked like this: <div class="form-group"> <label for="careers_job_description">Job Description</label> {field:careers_job_description} </div>
    – kingk1974
    Commented May 27, 2015 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.