- Issue 1:
- Scenario: Using more than one kind of custom widget in the same record format requiring multiple functions in the onsubmit() event.
- Example:
Code: Select all
window.myCustomWidgetOnSubmit1; window.myCustomWidgetOnSubmit2;
- Problem: The first function is evaluated; the second one is not.
- Potential Solutions:
- 1. Use the same function for all custom widget types (append code to this function whenever a new widget type is created)
- 2. Expose the response object so that values can be appended directly to it from within the custom widget's code (removing the need to call a function in the onsubmit() event that handles it)
- 3. Expose a custom response object that gets appended to the main response object on form submission (custom widget code would include assignments to this custom response object)
- (ProfoundLogic would have to enhance their code for solutions 2 and 3)
- Issue 2:
- Scenario: Using pui.submit() in the onclick event of a custom widget (where the onclick event is attached in the custom widget code itself)
- Problem: pui.submit() does indeed submit the form, but when done this way seems to bypass calling any custom widget functions listed in the onsubmit() event of the record format itself.
- Hopefully someone has some ideas how to solve this issue.