onButtonClick() for each element in form commaSeparatedValues += element.value + "," document.location.href= "processForm.aspx?values=" + encodeURL(commaSeparatedValues)
Hii,
I am too facing the same problem ,Can anyone please help me out
We too have had some problems regarding this dynamic input form generation.
You could parse the given HTML and retrieve field names. Feed them into a list containing webblocks, this webblocks contain a form, inside the form you have the label and the input field. These webblocks must have a save action and a validation action(if you want), then, in the parent screen you can have a button to perform all the actions within the webblocks (This can be achieved using events system). Hope this help, if you need more info just ask ;) .
hi ,
i tried to get the respone in an expession in which i inserted an iframe to get the html but i am unable to define
the source
What you mean is that you assigned the response (which is a text with html content) to a variable and inserted it in an expression? If so, then set the "Escape content" property of that expression to no.
What this will do is to make the html be rendered.
kind regards
actually i am getting response but the issue is my response is a html form and has a submit button which directs to another site
but when i publish my os page the submit button dose'nt work
Oh, of course, Suraj, that input button that you are using is not, very probably, a default button from outsystems, it came from the html that you retrieved.
To solve this I would:
1- Parse the HTML to retrieve Field names. (list)
2-From the input names list retrieved in step 1 I would create a dynamic form.
2.1- To create the dynamic form start by using a webscreen, in that webscreen you have a list, in that list each item is a webblock.
2.2- The webblock mentioned before will have an input which is the input identifier (somehow you must keep this in DB).
2.3- The Webblock must also contain a form, within that form the current input.
3- To use this approach you must get system events from forge to handle this type of architecture more easily.
Kind regards.