Form Buttons
Hi,
I have a form that displays the elements of a list.
I want to add a button to the form,
so that when the button is clicked a new element
is appended to the list.
How do I do this?
Where do I put the code that would add the new element?
Do I put it in the Expansion tag of the button field or does this
processing need to be done in the workflow?
I am a bit lost here, I don't quite understand how
IDM processes button clicks. I would greatly
appreciate an explanation or some sample code.
Thanks,
John I
[593 byte] By [
johni] at [2007-11-26 8:54:47]

# 1
If you set action='true' for a button, the form is reloaded, so you can write code to detect if a button has been clicked and the action to be taken in Derivation or Expansion sections of your form components.
How are you displaying the list of elements? What is the new item to be added when the button is clicked - a calculated value or user input?
# 2
Hi chits98,
Thanks for your reply!
>How are you displaying the list of elements?
>What is the new item to be added when the button is
>clicked - a calculated value or user input?
I am displaying the list as a column of Text fields,
one Text field per element in the list.
The idea is that the user can manually edit each element
in the list, and also click an "Add a New Row" button to
add an empty element <s></s> to the list, which
should be displayed as another Text field.
If there are many buttons on the form, how do you
determine which one was clicked?
John I
johni at 2007-7-6 22:51:27 >
