-
☆ A M B ☆
- 1,231 Posts
I have 6 custom fields but I only want them to appear if someone fills the info out... now that’s easy enough to do using the defaults but I want to style these forms to how I want them. I have created the snippet and custom style etc but they are appearing with no info in the field. How can I only have fields appear with info in put?
An example of one of the styles is.
<li>
<a href="mylink"><img src="myimage" alt="[+view.option1+]" title="mytitle" height="128px" width="128px" />
</li>
I have 6 in a list in the user edit template... it’s a select box with options and they can choose up to six. Each option is displayed as the <li> above but without any options selected all 6 <li> are appearing with no in the fields. Is there a way to allow a user to add a field on the fly or similar to display from 0-6 options.
Or is there a way to create your own templates for [+view.form+] at all?
you might like to try out PHx and ":ifempty" variable.