We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ 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?
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 21524
      • 90 Posts
      you might like to try out PHx and ":ifempty" variable.