Hi! @TeamI'm building a form which contains a list and in that list I've put Dropdown which is bind to my static entity that shows four Subjects but I want to put a validation that If I select a subject Maths It won't show the Maths in next dropdown (We can say that those subjects which I've already selected in previous dropdowns won't show in current dropdown ) so, how will I achieve this please help me to complete the requirement.I've attached the OML for your reference.Thank you
Hello Ibad,
I suggest to have list of subjects into each record of your structure that you will assign to this list initially all subject lists into all records will have 4 subjects and you need to implement on change of dropdown list to remove selected item from subject lists of other records only
Hello @Mostafa Othman,
Thanks for your quick response
I already tried to take a structure variable and check every-time all the selected records in dropdown but, unfortunately I'm unable to fulfill my requirement can you please share a Sample OML for my reference.
Hi Ibad,
Please find attached OML file.
It is not a full solution yet, so take with a pinch of salt.
You can incorporate these changes and see if it works for you. In the proposed module, you'll be able to add your own code to add and remove subjects in each dropdown widget. But surely, will need some changes which I couldn't complete due to no data available and no button to add new record on the list of subjects. Let me know once you have a newer version available to make further changes at my end. I'll be happy to finish those changes for you so you can see and understand the code of the solution I implemented.
Cheers!