But this is not helping. When I click on submit, I am getting alert for inputing value for simple price. I want, if option simple is clicked and not inputted in simple price value then it should display error message.
Your help will be highly appreciated.
Thanks in advance.
Are you using Form Builder, or writing XForms by hand? In the <xf:bind> you quoted, I see a relevant="…", but I would expect you to have a number of those <xf:bind> that use relevant="…" to hide/show the different text fields depending on the selected value.
Does this help? If you're still stuck, I'd recommend you create a bare-bone stand-alone example that just has the aspect you explained, and post it here, so we will help us point you to what is missing or would need to be changed.
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet