Two Part Question - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Two Part Question

Last post 10-23-2019 11:03 AM by Hilary Stoupa. 14 replies.
Page 1 of 1 (15 items)
Sort Posts: Previous Next
  • 10-22-2019 10:35 AM

    Two Part Question

    I have two views Manager and Ops I have three fields in a repeating table that are required. However, I cannot submit the new entry because the 3 fields are required and it is throwing an error in both views. I have want to allow the new form to be submitted and using workflow route the next view to the manager and have these 3 fields be required. Same after the manager updates their part route to the Ops view and have them update theirs. I tried to use validation rule and it stopped me as well as the fields are required for the manager and ops. How can i do this. I saw a post that was vague that said you can do this by setting the view in a field i cannot figure out how to do that. SO if we can have a solution to one or both of my issues I would appreciate it. Dorinda
  • 10-22-2019 12:19 PM In reply to

    Validation rules are one way to approach this - but you could also disable your submit button unless the necessary values have been populated. Will that work for your scenario?
    Hilary Stoupa

  • 10-22-2019 12:32 PM In reply to

    How do i do that?
  • 10-22-2019 12:55 PM In reply to

    Do you use a button on your form to submit the form? Or the built in submit button on the ribbon? If you use a button on your form, you can add formatting rules to disable it. It is hard to tell you how to do it step by step without knowing anything about your form's schema, however... I mean, you mention a repeating table - so when the manager approves, can they enter any number of rows to the repeating table, and then all three fields in every row are required? You can attach your form to a reply under the options tab, if you like. That would help me help you. :)
    Hilary Stoupa

  • 10-22-2019 01:02 PM In reply to

    Ok I think i figured it out, but to be clear it will apply to every row in the repeating table so all three fields have to be filled in in every row. Also is there a way to add a message that the fields are required?? I know you can with validation but I dont want to go down that road. Dorinda
  • 10-22-2019 02:08 PM In reply to

    Here's a sample. Save locally from the link in the message header, then right click the saved file and select Design. From there you can preview the form and try it out. You'll see there is a custom expression on the calculated value w/ the message. You could also use the "All occurrences" of the field are not blank - I added a screenshot to the form showing you where to find that.
    Hilary Stoupa

  • 10-23-2019 06:09 AM In reply to

    Ok I sorta have this working but I am confused how i do the all occurrences. I have the expression working to pop up the required verbiage, but I am not clear how i add that to the expression. Please clarify Dorinda
  • 10-23-2019 07:52 AM In reply to

    Did the screenshot in the form not help? When you select a repeating field while building the condition, you can use the dropdown to select all occurrences. I didn't do that - I just wrote out the XPath by hand in my sample. But it may be easier for you.
    Hilary Stoupa

  • 10-23-2019 08:04 AM In reply to

    I actually used the xpath expression creator in the calculated value field to create the expression since when i went into the condition to create it didnt give me the FX to use. So I do not know how to proceed from there. Dorinda
  • 10-23-2019 08:20 AM In reply to

    I'm not trying to be difficult, but I'm having a hard time understanding your question. Is there any chance you can attach your form under the options tab in a reply so I can just help you set it up?
    Hilary Stoupa

  • 10-23-2019 08:24 AM In reply to

    This will be on the manager and ops view. Thank you for your help.
  • 10-23-2019 08:33 AM In reply to

    Try this version. Save the linked file locally. Right click the saved file and select Design to open in Design mode. From there you can preview and see if the views work as anticipated.
    Hilary Stoupa

  • 10-23-2019 09:05 AM In reply to

    You rocked it once again thank you so much! Dorinda
  • 10-23-2019 09:06 AM In reply to

    Just one one outstanding question out there to figure out and i am set. https://www.infopathdev.com/forums/p/5802/121811.aspx#121811
  • 10-23-2019 11:03 AM In reply to

    I didn't understand your question on that old post. Can you clarify what you need?
    Hilary Stoupa

Page 1 of 1 (15 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.