We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel Form Validation

How Do I?

restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Hi,

I’m trying to add a rule validation of one Channel Images field in channel form. I’m using this code:

{exp:channel:form channel="mychannel" return="ENTRY_ID" error_handling="inline" rules:product_images="required" rules:tags="required"}

{field:product_images} 
{if error:product_images}<div class="alert alert-danger" role="alert">{error:product_images}</div>{/if}

I need the validation at form level and not a channel level, so product_images field (Channel Images upload field) was set not required at channel level.

Is there any way to set this field as required at form level?

Thank you.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.