Trouble using conditioning for Date and Time Picker - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Trouble using conditioning for Date and Time Picker

Last post 04-21-2017 10:05 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-21-2017 09:18 AM

    Trouble using conditioning for Date and Time Picker

    Fairly new to SharePoint and InfoPath. I searched for a while and couldn't find this specific issue mentioned - my apologies if this is a repost. I'm nearly complete building an all-encompassing internal request form for my company. The company has offices in L.A., Chicago, and Atlanta which will all be using the form. My most glaring issue at this point is that the Date and Time Picker will not auto populate with the rules I've placed on it. The form forces the user to choose the office location via drop-down list (one of the three cities) before revealing a section which contains the Date and Time Picker. The picker remains blank until the user activates it and chooses a dummy date. When any date is selected, the rules suddenly kick in and the field is populated according with the city chosen in the drop-down list. I've tried adding a button to update/refresh the form next to this date picker, but neither have worked. I am comfortable writing some basic if/then/else scripts, but I've not found a way to translate this to XPath and not sure if XPath syntax allows this. Ideally I would like the date/time population (and really any field with conditions) to be as abrupt as the display and hiding of different sections I've created rules for.
  • 04-21-2017 09:25 AM In reply to

    Re: Trouble using conditioning for Date and Time Picker

    Are your rules on the date field? Or on the Office Location field? Rules go on the field that is changing, not on the field they are affecting...
    Hilary Stoupa

  • 04-21-2017 09:52 AM In reply to

    Re: Trouble using conditioning for Date and Time Picker

    sometimes it's the little things! I feel silly having my first post on this forum be something so simple. Thank you!
  • 04-21-2017 10:05 AM In reply to

    Re: Trouble using conditioning for Date and Time Picker

    I'm glad it was something simple. Honestly, this is something that confuses a lot of people (me included, it took me a while to really get this concept) that action rules need to be on the field that triggers the rule (not the target!) AND they only execute when the field changes. So if your field is equal to 1, for example, and you set it to 1 again, that rule won't fire again. :)
    Hilary Stoupa

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