Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

XForms Layout



I was wondering... is there any smart way to change layout of an XForm. For example i don't whant to put everything inside a <table> and so on, I want to put it inside <li>:s instead... thats wy I google:ed a bit and found this ( ) among other results. It involves taking a string and replace some values ​​inside it and hope for the best... this won't work in the long run.

Isn't there a way to create custom buttons/inputs and so on... or maybe override existing items or... Please help me to find a proper way to do this.

Jun 21, 2011 13:50

If you want to extend xform, take a look at this blog post

Jun 21, 2011 14:21

Hmmm.. ah ok... have read and feels like I understand it all... almost... I can change them... item by item but the bounding table!?!

Is it possible to clean up... for example i don't want to have them inside a Table, I just want a list of data so I can render a <ul><li></li></ul> of all that... and put buttons inside a <div> outside and so on...


Jun 21, 2011 16:01

the code shows how to adress the form elelements ;), and you can use the same logic to change the table

if you use the HtmlAgilityPack you should be able to find the modell, and change table to ul, td til li etc


Jun 22, 2011 9:18

Mmm... I think I will try this eventually



Edited, Jun 22, 2011 15:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.