Filling Textboxes From Flow

Filling Textboxes From Flow

Comments

  • Question about data flows. I’ve got a form with two textboxes. If the users enters a value on either textbox, I’d like to go out and search for data to fill in the other text box. Example would be if someone knows an employee_id, I’d like to search for their email address, or if they know the email address, I’d like to search for the employee_id. I’ve got a flow that works just fine to do this, and if I set up the data flow rules on the form and set them to fire on value changed for each text box, they do actually fire. For a fleeting instant, the correct values appear in the text boxes, but then the value changed event fires for the opposite text box and for some reason it doesn’[color=rgb(34, 34, 34)]t[/color] pass in the value in the text box, passes a blank, which causes the text boxes to become blank. Am I missing something?

    Thanks

  • Instead of having the dataflow run on value changed can you set it to run on a different event such as exiting the textbox or stopped typing?

    Try that and see if it will work.

  • The issues I see with that (and I think one might be a bug) are this:

    1) If I copy/paste into the box, it doesn’[color=rgb(34, 34, 34)]t[/color] recognize that as ‘Stopped Typing’. My impression is that the users will largely copy/paste.

    2) If I put it in the exit, that initially works, but if I tab out of the first box after entering the value, it fills in the second box, but when I exit that box, it blanks everything (this seems like a bug).

  • Are you using 1 dataflow or 2? I would use 1 data flow that takes both textboxes as input. In the data flow check both textboxes to evaluate if there is data in them if so pass it back into the text box. If there is no data in a text box use the other textboxes data to fetch its value and pass that value into the blank textbox. So you would have 2 outputs from this dataflow.

  • I was using two. I had tried to get clever with my query in the flow that caused me to use two data flow rules that called the same flow with different values. I’ve reformulated and gotten it working per your suggestion.
    [color=rgb(80, 0, 80)]

    Thanks
    [/color]

Sign In or Register to comment.