kentico_jurajo
-
8/19/2009 5:44:40 AM
RE:Can i programmatically add fields to a BizForm at runtime?
Hi,
you can create a custom form control to achieve the functionality for (non)authenticated users. In this control you will check the current user and according to it you will display/hide the field.
Regarding the second question. for this you can use alternative forms. You will need to modify the code of the bizform web part. At first, alternative form A will be displayed, after it is submitted, you will handle OnAfterSave event, in this event you will hide the form A and display alternative form B with the additional field. On the next submit you will call update on the bizform data to merge them.
Best Regards, Juraj Ondrus
|