Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Dynamics Portal Webform Step Condition Using Date

(0) ShareShare
ReportReport
Posted on by 15

I am creating a Web Form using Steps in Dynamics Portal.

I have a date only field on a step the user will put a date in. I need to use a condition when that step is submitted that works out if that date is 5 years or older from today.

For example todays date is 23 Apr 2021

If the date entered in the field is 20 April 2016 (5 years and 3 days ago) then this would pass the condition and move to the next step.

If the date entered in the field was 25 April 206 (4 years 362 day ago) then this would fail the condition and move to a different step.

Can you use this time of feature in the Step Condition?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics Portal Webform Step Condition Using Date

    Hi Jonny,

    The syntax for creating the conditional expression does not allow for complex operations like “check if this value exists in another entity”. The conditional logic can really only check to see if a column (field) of the row (record) from the previous step equals a specific value.

     pastedimage1619426967446v2.png

    So you need use other ways to calculate years automatically and create a new field to store it, then use the new field as filter in the condition step.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans