web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Pre-fill Forms from URL

(0) ShareShare
ReportReport
Posted on by 105

Is ist possible to prefill (hidden) fields from the URL of the webpage.

Example: https://mysite.com/events/event-20200512-0900

Can I somehow get that date and time from the URL into my form?

  • cloflyMao Profile Picture
    25,210 on at

    Hi KE Comm,

    You can achieve it by adding custom typescript code to corresponding ts file(eventregistration.component.ts) of event registration page.

    In the ts file, use 

    this.router.url
    function get full URL then extract date and time from it.

    Process to extraction:

    1. Get "event-20200512-0900" with lastIndexOf function.

    2. Use split function to split date and time value to 3 substrings. 20200512 is the second substring, 0900 is the third.

    Finally, return the extracted value to page.

    The whole process would be bit complex, please feel free to ask any question if you had encountered any trouble when adding custom code.

    Regards,

    Clofly

  • Suggested answer
    protc Profile Picture
    Microsoft Employee on at

    Hi,

    I think you should be able to use the Power Automate AI builder to achieve this as well,

    docs.microsoft.com/.../

    I have not tested it but sounds doable.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 93 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 54 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans