My workflow looks like this:
1. A user creates a new request (record) in a form by filling in and saving the entry.
2. A PHP script sends an email to the requester, acknowledging that the request was received.
3. At the same time, an email is sent to the support team, notifying them of a new request that requires action.
Now I'd like to add a link to the email that re-opens that specific record. This allows the support team to edit the record without the need to search for it manually.
I have found a solution in this thread:
http://forums.nubuilder.cloud/viewtopic.p ... al+#p14966
Any chance to implement it in V4? This would ease things a lot.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Edit existing record /permalink
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Edit existing record /permalink
Steven,
Thank you so much for the rapid implementation! It works great so far, I just need to do some more testing.
The only drawback is - if that's what you want - that preceding breadcrumbs are not present, or at least there should be a way to go "back" to nuuserhome. (Maybe show a home breadcrumb)
For those who would like the permalink to show up in the browser's address bar, add this piece of JavaScript under
Home ► Setup ► Header
(That might be something not everyone wants and maybe if this is going to be integrated at all, it should be configurable.)
Thank you so much for the rapid implementation! It works great so far, I just need to do some more testing.
The only drawback is - if that's what you want - that preceding breadcrumbs are not present, or at least there should be a way to go "back" to nuuserhome. (Maybe show a home breadcrumb)
For those who would like the permalink to show up in the browser's address bar, add this piece of JavaScript under
Home ► Setup ► Header
(That might be something not everyone wants and maybe if this is going to be integrated at all, it should be configurable.)
Code: Select all
function nuOnLoad(){
if (window.top === window.self) {
var f = nuCurrentProperties();
if(window.location.search.indexOf('?i=')>=0)
window.history.replaceState('',document.title,'?f=' + f.form_id+'&r='+ f.record_id);
else
window.history.pushState('',document.title,'?f=' + f.form_id+'&r=' + f.record_id);
}
}
Re: Edit existing record /permalink
toms,
If anyone needs a breadcrumb (back to a place they didn't start) they will have to do it a different way than using these URL parameters.
Steven
If anyone needs a breadcrumb (back to a place they didn't start) they will have to do it a different way than using these URL parameters.
Steven
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Edit existing record /permalink
How could this be achieved?
Adding a html link that points to https://xxx/nuBuilder4 won't help much since you'll get this nasty dialog box:
Adding a html link that points to https://xxx/nuBuilder4 won't help much since you'll get this nasty dialog box:
You do not have the required permissions to view the files attached to this post.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Edit existing record /permalink
Let me give you some more/precise details:
1) I open a record of a form using "Auto Login"-parameters: e.g. https://xxx/nuBuilder4/index.php?f=5a54 ... b944&r=142
2) Now I can edit and save the record (Picture "Edit a record")
3) If the user wants to go back to the home screen (Picture "nuhome"), there is no way (no home breadcrumb)
The only way is to hit "logout" and "login" again.
I'm wondering if there is a possibility to add a link (or breadcrumb) to go to "nuhome" without the need to logout and login again.
1) I open a record of a form using "Auto Login"-parameters: e.g. https://xxx/nuBuilder4/index.php?f=5a54 ... b944&r=142
2) Now I can edit and save the record (Picture "Edit a record")
3) If the user wants to go back to the home screen (Picture "nuhome"), there is no way (no home breadcrumb)
The only way is to hit "logout" and "login" again.
I'm wondering if there is a possibility to add a link (or breadcrumb) to go to "nuhome" without the need to logout and login again.
You do not have the required permissions to view the files attached to this post.