Hello,
The best way to accomplish that logic would be to use a helper field that stores the date that the date picker should not exceed. On form load, the form would evaluate this value using the addDays function. On form load you would set your max date to:
addDays(today(), 7)
This value could then be used to format a section to hide if the date picked is greater than the max date.
Let me know if this works for you, or if more details are needed.
Bre
Bre Huston
| Form Designer
Qdabra® Software / InfoPathDev.com / FormsQuo / 877.544.2389 main / 425.318.7843 direct
Business Process Automation for Everyone – Streamline data gathering to
turn process into knowledge.™