We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question

Predefine Categories

Is there anyway we can predefine the value for category in a template ?

Titus Saju

Titus Saju 0 points

  • 5 months ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean select one or more categories by default when an empty form loads?

yes , exacyly

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Hello Titus,

You need to specify the category ID in the default attribute:

<perch:categories id="categories" set="products" label="Categories" default="6">