Forum

Thread tagged as: Question, Suggestions, Forms

Perch Forms Email template - accessing the label

I'm putting together a Perch Forms Email template to customise the response I send to the customer. Is it possible to access the label information I stored in the form template in the email template, or do I just need to repeat it in the email template.

eg if my form template contains:

<perch:input type="textarea" id="lc-community-chaplains-awareness" label="How did the community raise your awareness about the subject? (Community Chaplains)" rows="3" class="form-control" />

Is there a way to get at the "label" text here?

I obviously retrieve the value like this:

<perch:email id="lc-community-chaplains-awareness" encode="false" />

Anything like:

<perch:email id="lc-community-chaplains-awareness" show="label" />

If not, perhaps this could be a feature suggestion. Thanks.

Paul Bell

Paul Bell 0 points

  • 3 years ago

You can use the form api to get this information and pass it into the template with PerchSystem::set_var()

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't believe that will work with form templates.