Custom Template Text Display

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
michaelmcewen
User
Posts: 78

Custom Template Text Display

Post by michaelmcewen »

I have a table that holds the answers to a series of questions....like a test. Of course, I'm not actually storing the question "text", but just the answers.

I figure I have to use a Custom Template to display the question along with the answer (which is a ENUM field using a Radio Button). The text of the question is too long to be included as a caption. I'm just having trouble wrapping my head around how I display the question when it won't be the caption.

If someone could point me in the right direction, I'd be grateful!

Thanks!


sangnandar
User
Posts: 980

Post by sangnandar »

You're already in the right direction. Use Custom Template.

For example you can write this in custom template:
<p>Your long question?</p>
<p>{{{value yourfield}}}</p>

{{{value yourfield}}} will NOT display yourfield caption.
Adjust your html layout freely.


michaelmcewen
User
Posts: 78

Post by michaelmcewen »

Thanks! I think that'll do the trick. I guess I wanted a little confirmation before I headed down that path.


Post Reply