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.