dynamic creation of checkbox

SnowDEV2
Kilo Expert

Hi,

I want some value to be fetched from a table & display them as check-box in a catalog item.

Thanks in advance

27 REPLIES 27

Gurpreet07
Mega Sage

I haven't tested this on Geneva but on Eureka.   The code is in HTML and it should work fine in Geneva as well . With few changes ,you should be able to achieve the same in Geneva as well.


I changed the tablename and script_include but it doesnt work on geneva demo instance.



wats the "iafcategories" here --> input type="checkbox" class="iafCategories"



is any other piece of code missing ?


Hi Kumar,


There is no use of class name when creating checkboxes but after the form is submitted , you need to get all these checkboxes using this class name and that logic should be in you onSubmit Client script. Please let me know the demo instance where you are trying to create these checkboxes . i will try to fix this in there.


Hi Gurpreet,



This is a very cool implementation and I am trying to do something very similar, but this on a custom table (not catalog item). I haven't been able to get your solution to work on my form - possibly because I don't have a 'container' field to anchor the UI Macro to?



I was wondering if you know if this is possible?



Thank you!



- Matt


Here i am attaching the XML Export of a UI Page and Script Include. Just import the same into your instance and then open the UI Page 'checkPage'. Records been retrieved from cmn_department table and could be changed in script include.