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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Button to save and redirect to another page in portals

(0) ShareShare
ReportReport
Posted on by 250

Hello everyone, my name is Taniguchi and in the portals when i want to save a form i click in sent but i need to save and redirect to another page

i have this code but only redirect and doesnt save:

$('#InsertButton').click(function(){
window.location.href = "/pfuncionario/entradahoras/";
})

can anyone help me?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello Taniguchi,

    You won't be able to save using jquery, but if you want to redirect after save you can configure it from entity form. So go to entity form and do configuration like following

    redirect.png

    Let us know if you need more help.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Refer this blog- www.itaintboring.com/.../dynamics-portals-adding-a-custom-button-to-the-entity-forms

    You need to have your main save button clicked with this button in order to save the values. Something like this-

    $('#InsertButton').click(function(){

    $(‘#UpdateButton’).click();

    window.location.href = "/pfuncionario/entradahoras/";

    })

    Hope this helps.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Taniguchi,

    How did you go with this. If this is resolved, please close the thread by marking the suggestion as helpful it it helped you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans