We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17552
    • 46 Posts
    Hi,

    I have the following code:
    <div class="type-text">
       [[+fi.error.mf_company]]
       <label>Company *</label>
       <input type="text" name="mf_company" id="mf_company" size="28">
    </div>
    


    How is it possible to add a class to the outer container like:
    <div class="type-text error">
    


    loxy
      • 28215
      • 4,149 Posts
      <div class="type-text[[+fi.error.mf_company:notempty=` error`]]">
      
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 17552
        • 46 Posts
        Thanks!