You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Requiring Category Selection

Accepted answer
42
Views
2
Comments
edited Jun 7, 2022 1:20PM in General Technical Discussions 2 comments

Summary

Required attribute doesn't appear to be working

Content

Hi all,

I'm using the BasicProductCategoryInput widget to display a simple dropdown of our categories on the ask page. We noticed that despite setting the required attribute to true and seeing the red asterisks next to the field on the page, a user can still submit the question without selecting a category. Is there a way to get the required attribute to do more than just display the asterisk, to have it actually block submission?

Version

18D

Code Snippet

<rn:widget path="input/BasicProductCategoryInput" name="Incident.Category" required=true label_input="Select a Category"/>

//also tried with ""
<rn:widget path="input/BasicProductCategoryInput" name="Incident.Category" required="true" label_input="Select a Category"/>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!