For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hello team!,
I need to know how I can achieve that if the client selects a category of a specific product, immediately the field of "attachments" is enabled as mandatory.
I need this only for five categories, that is, when the client selects one of them, the attachment field becomes mandatory. If, on the other hand, the customer chooses another category, leave the normal "attachment" field.
I have made the attached field mandatory for all categories, but I need it only for specific categories.
If anyone knows how to achieve it, I appreciate it!
Comment
You're going to need to use dynamic forms if you want the attributes of one input element to change based on the values of the other inputs. Fortunately the dynamic forms sample code will get you 80-90 percent of the way there. You'll need to grab the source code in the zip file and examine the widgets it extends and how it implements in the example page. From here you should easily see how to alter the implementation page to make your fields aware of the productcategoryinput change. This code does most of the heavy lifting for you, but its all built on event subscription from one input element to another.
https://documentation.custhelp.com/euf/assets/devdocs/cloud19b/olh/CustomerPortal/topicrefs/t_Dynamic_forms_bw1134185.html
Be the first to rate this
|
Sign in to rate this
Yeah, you need to use javascript and toggle a div visibility based on your selection. The div will than contain your attachment widget.
Be the first to rate this
|
Sign in to rate this