- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a local-form with four required text Fields for the user to enter. This form is called when a new document is created, if any of the four fields is empty the form shows up and it doesn't go away until all fields are filled in. This works fine if the form is called form a local iLogic rule but if I called the form from an external iLogic rule it kind of works but it behaves different. Let me explain it.
When the form is called from a local rule and all four fields are empty but the user only fills one of the fields and click Done, the form reappears which is exactly what I want. On the other hand, if the form is called from an external rule and all four fields are empty but the user only fills one and clicks Done, instead of reappearing the same window it creates a second window, and if the second time the user fills only one field again, a third window appears and so on, I know in a perfect world the user should fill in all of the fields and NOT click the Done button until then, but I need to account for all possible scenarios.
Any idea why just by moving my code to an external rule recreates the window?
Here is my iLogic Code:
SyntaxEditor Code Snippet
Sub Main checkFields() End Sub Private partNumber As String Private description As String Private project As String Private designer As String Function checkFields partNumber = iProperties.Value("Project", "Part Number") description = iProperties.Value("Project", "Description") project = iProperties.Value("Project", "Project") designer = iProperties.Value("Project", "Designer") Do Until String.IsNullOrWhiteSpace(partNumber) = False showForm() partNumber = iProperties.Value("Project", "Part Number") checkFields() Loop Do Until String.IsNullOrWhiteSpace(description) = False showForm() description = iProperties.Value("Project", "Description") checkFields() Loop Do Until String.IsNullOrWhiteSpace(project) = False showForm() project = iProperties.Value("Project", "Project") checkFields() Loop Do Until String.IsNullOrWhiteSpace(designer) = False showForm() designer = iProperties.Value("Project", "Designer") checkFields() Loop End Function Function showForm iLogicForm.Show("Required Fields Form", FormMode.Modal) End Function
From
Multiple Windows when Using External Rule
FYI - The form is local.
Solved! Go to Solution.