Prefill webform with civicrm activity dataHow do I setup a webform so that an existing activity in a case is updated?How to set up the filtering in Drupal Views to target the correct CiviCRM ActivityCustom drupal contact display fields?Any best practices/tips for creating a query view against contacts to used with webforms?How do you create a new custom table tied to case type?Updating Civicrm Activities with Drupal WebformsShould the link between an Activity and any Follow Up activity be visible through the UIHow to recover deleted (?) activityDrupal Webform for Activities - CiviCRM Permissions
Why is wired Ethernet losing its speed advantage over wireless?
Why didn't the British consider the USS President's attempted flight as a fake surrender?
Will the same Javascript fetched by HTTP and HTTPS be cached separately by the browser?
How do I force `sudo` to ask for a password each time when a specific command is used?
Why was the recess in the Judiciary Committee's mark-up meeting controversial?
Can we use a Cryptographic hash function to generate infinite random numbers?
Portisch-Radulov, Moscow 1977. Doesn't 16.c5 lose a pawn?
Secure Implementation of Password Database
Story ID: plugging vacuum leak with one's butt
Is harmlessly appearing to be a school bus driver a crime?
Can I ignore an open source license if I checkout a version that was released prior to the code having any license?
Was a four year-old forced to sleep on the floor of Leeds General Infirmary?
Why are Marx Generators built like that?
Why doesn't knowledge of how magic works break magic in this world?
Why is there a preference to use the cumulative distribution function to characterise a random variable instead of the probability density function?
Sudden cheap travel?
What are the earliest instances of a virus causing large-scale mutations?
Is there a Scoville scale for coldness?
Berlin 1923 & 1925 Address Book Abbreviations "I", "E", "Kgst" and "Mb"
My boss asked what number would keep me happy?
What is the narrative difference between a Charisma and Wisdom saving throw?
Why are the Democrats & Republicans so homogeneous in their opinions of impeaching Trump?
I keep rewriting the same section of my story. How do I move forward?
Blender Python and pass settings
Prefill webform with civicrm activity data
How do I setup a webform so that an existing activity in a case is updated?How to set up the filtering in Drupal Views to target the correct CiviCRM ActivityCustom drupal contact display fields?Any best practices/tips for creating a query view against contacts to used with webforms?How do you create a new custom table tied to case type?Updating Civicrm Activities with Drupal WebformsShould the link between an Activity and any Follow Up activity be visible through the UIHow to recover deleted (?) activityDrupal Webform for Activities - CiviCRM Permissions
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I want to prefill a webform with data from a specific CiviCRM activity in order to edit the activity using the webform. I want to do this by having an "Edit" link in a Drupal View of CiviCRM activities. These activities may or may not be associated with a case, so let's assume they aren't. I've turned on "Update Existing Activity" in the webform for all of the statuses.
Can someone confirm that I can do this, and if so, what is the proper form of the URL for the link in the view? I've tried a bunch of different ones and can't seem to get it.
drupal webform-civicrm activities
add a comment
|
I want to prefill a webform with data from a specific CiviCRM activity in order to edit the activity using the webform. I want to do this by having an "Edit" link in a Drupal View of CiviCRM activities. These activities may or may not be associated with a case, so let's assume they aren't. I've turned on "Update Existing Activity" in the webform for all of the statuses.
Can someone confirm that I can do this, and if so, what is the proper form of the URL for the link in the view? I've tried a bunch of different ones and can't seem to get it.
drupal webform-civicrm activities
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20
add a comment
|
I want to prefill a webform with data from a specific CiviCRM activity in order to edit the activity using the webform. I want to do this by having an "Edit" link in a Drupal View of CiviCRM activities. These activities may or may not be associated with a case, so let's assume they aren't. I've turned on "Update Existing Activity" in the webform for all of the statuses.
Can someone confirm that I can do this, and if so, what is the proper form of the URL for the link in the view? I've tried a bunch of different ones and can't seem to get it.
drupal webform-civicrm activities
I want to prefill a webform with data from a specific CiviCRM activity in order to edit the activity using the webform. I want to do this by having an "Edit" link in a Drupal View of CiviCRM activities. These activities may or may not be associated with a case, so let's assume they aren't. I've turned on "Update Existing Activity" in the webform for all of the statuses.
Can someone confirm that I can do this, and if so, what is the proper form of the URL for the link in the view? I've tried a bunch of different ones and can't seem to get it.
drupal webform-civicrm activities
drupal webform-civicrm activities
edited Sep 30 at 20:23
KarinG - Semper IT
12.8k1 gold badge8 silver badges40 bronze badges
12.8k1 gold badge8 silver badges40 bronze badges
asked Sep 30 at 14:43
guyiacguyiac
3231 silver badge9 bronze badges
3231 silver badge9 bronze badges
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20
add a comment
|
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20
add a comment
|
3 Answers
3
active
oldest
votes
Below please find some screenshots to illustrate how to do this:
1. This is a View of Activities. Each Activity has an Update button [that's a Global: Custom Text field -> Text Update; Rewrite results: Output this field as a link -> to the webform URL with case-worker-form?cid2=[contact_id]&aid=[id]
and bootstrap classes btn to make it a button] -> the URL that is constructed is case-worker-form?cid2=41218&aid=19153
2. The webform case-worker-form -> receives this data. That form is set up such that cid1 = the logged in user (the social worker); cid2 = the client; aid = activity id of the activity to be updated;
3. Let's edit the subject e.g. ->
4. Result:
5. Note the Webform just has Update Existing Activity set to None (as we're matching by aid)
Add on:
I've double checked that this is (still) working on our latest webform civicrm 5.x
root@f4d0afb6c36d:/var/www/html/sites/default/modules/webform_civicrm# git log
commit 76b444bf5192ddf4663a0222540684a230d8e39e
Merge: b54ddfd ef2a518
Author: Karin Gerritsen <KarinG>
Date: Thu Sep 12 11:24:26 2019 -0600
Merge pull request #251 from colemanw/rel7
Use api to retrieve relationship data
Add - on config notes:
ensure your views field is configured such that commas are stripped from cid and aid before passing them into the webform
ensure your webform is configured to allow an activity of the type you want updated -> setting it to -user select- will ensure that
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
add a comment
|
Having "Update Existing Activity" setting turned on, prefills the form with the matching activity based on Type and Status. In case of multiple activities, it prefills/updates the first one.
Adding '&activity1=activityID' in your webform url, irrespective of the 'Update Existing Activity' setting, will prefill and update the activity (with id=activityID).
In case of revisioning you might need to provide latest activity ID in url or it might not work. Think you could have some custom code or configuration in view to fetch the latest activity id for a contact, to make it work.
add a comment
|
This should work but is a bug in the latest version of Webform CiviCRM. Will open a ticket.
(Update)
Webform requires that the form is configured a certain way on the civicrm tab for activities in order to load the activity. It appears that at least 1 contact on the form needs to be set as a participant on the webform for the autoload to work. nb. I'm going to investigate further if other combinations will or will not work.
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
|
show 4 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "605"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcivicrm.stackexchange.com%2fquestions%2f33201%2fprefill-webform-with-civicrm-activity-data%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Below please find some screenshots to illustrate how to do this:
1. This is a View of Activities. Each Activity has an Update button [that's a Global: Custom Text field -> Text Update; Rewrite results: Output this field as a link -> to the webform URL with case-worker-form?cid2=[contact_id]&aid=[id]
and bootstrap classes btn to make it a button] -> the URL that is constructed is case-worker-form?cid2=41218&aid=19153
2. The webform case-worker-form -> receives this data. That form is set up such that cid1 = the logged in user (the social worker); cid2 = the client; aid = activity id of the activity to be updated;
3. Let's edit the subject e.g. ->
4. Result:
5. Note the Webform just has Update Existing Activity set to None (as we're matching by aid)
Add on:
I've double checked that this is (still) working on our latest webform civicrm 5.x
root@f4d0afb6c36d:/var/www/html/sites/default/modules/webform_civicrm# git log
commit 76b444bf5192ddf4663a0222540684a230d8e39e
Merge: b54ddfd ef2a518
Author: Karin Gerritsen <KarinG>
Date: Thu Sep 12 11:24:26 2019 -0600
Merge pull request #251 from colemanw/rel7
Use api to retrieve relationship data
Add - on config notes:
ensure your views field is configured such that commas are stripped from cid and aid before passing them into the webform
ensure your webform is configured to allow an activity of the type you want updated -> setting it to -user select- will ensure that
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
add a comment
|
Below please find some screenshots to illustrate how to do this:
1. This is a View of Activities. Each Activity has an Update button [that's a Global: Custom Text field -> Text Update; Rewrite results: Output this field as a link -> to the webform URL with case-worker-form?cid2=[contact_id]&aid=[id]
and bootstrap classes btn to make it a button] -> the URL that is constructed is case-worker-form?cid2=41218&aid=19153
2. The webform case-worker-form -> receives this data. That form is set up such that cid1 = the logged in user (the social worker); cid2 = the client; aid = activity id of the activity to be updated;
3. Let's edit the subject e.g. ->
4. Result:
5. Note the Webform just has Update Existing Activity set to None (as we're matching by aid)
Add on:
I've double checked that this is (still) working on our latest webform civicrm 5.x
root@f4d0afb6c36d:/var/www/html/sites/default/modules/webform_civicrm# git log
commit 76b444bf5192ddf4663a0222540684a230d8e39e
Merge: b54ddfd ef2a518
Author: Karin Gerritsen <KarinG>
Date: Thu Sep 12 11:24:26 2019 -0600
Merge pull request #251 from colemanw/rel7
Use api to retrieve relationship data
Add - on config notes:
ensure your views field is configured such that commas are stripped from cid and aid before passing them into the webform
ensure your webform is configured to allow an activity of the type you want updated -> setting it to -user select- will ensure that
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
add a comment
|
Below please find some screenshots to illustrate how to do this:
1. This is a View of Activities. Each Activity has an Update button [that's a Global: Custom Text field -> Text Update; Rewrite results: Output this field as a link -> to the webform URL with case-worker-form?cid2=[contact_id]&aid=[id]
and bootstrap classes btn to make it a button] -> the URL that is constructed is case-worker-form?cid2=41218&aid=19153
2. The webform case-worker-form -> receives this data. That form is set up such that cid1 = the logged in user (the social worker); cid2 = the client; aid = activity id of the activity to be updated;
3. Let's edit the subject e.g. ->
4. Result:
5. Note the Webform just has Update Existing Activity set to None (as we're matching by aid)
Add on:
I've double checked that this is (still) working on our latest webform civicrm 5.x
root@f4d0afb6c36d:/var/www/html/sites/default/modules/webform_civicrm# git log
commit 76b444bf5192ddf4663a0222540684a230d8e39e
Merge: b54ddfd ef2a518
Author: Karin Gerritsen <KarinG>
Date: Thu Sep 12 11:24:26 2019 -0600
Merge pull request #251 from colemanw/rel7
Use api to retrieve relationship data
Add - on config notes:
ensure your views field is configured such that commas are stripped from cid and aid before passing them into the webform
ensure your webform is configured to allow an activity of the type you want updated -> setting it to -user select- will ensure that
Below please find some screenshots to illustrate how to do this:
1. This is a View of Activities. Each Activity has an Update button [that's a Global: Custom Text field -> Text Update; Rewrite results: Output this field as a link -> to the webform URL with case-worker-form?cid2=[contact_id]&aid=[id]
and bootstrap classes btn to make it a button] -> the URL that is constructed is case-worker-form?cid2=41218&aid=19153
2. The webform case-worker-form -> receives this data. That form is set up such that cid1 = the logged in user (the social worker); cid2 = the client; aid = activity id of the activity to be updated;
3. Let's edit the subject e.g. ->
4. Result:
5. Note the Webform just has Update Existing Activity set to None (as we're matching by aid)
Add on:
I've double checked that this is (still) working on our latest webform civicrm 5.x
root@f4d0afb6c36d:/var/www/html/sites/default/modules/webform_civicrm# git log
commit 76b444bf5192ddf4663a0222540684a230d8e39e
Merge: b54ddfd ef2a518
Author: Karin Gerritsen <KarinG>
Date: Thu Sep 12 11:24:26 2019 -0600
Merge pull request #251 from colemanw/rel7
Use api to retrieve relationship data
Add - on config notes:
ensure your views field is configured such that commas are stripped from cid and aid before passing them into the webform
ensure your webform is configured to allow an activity of the type you want updated -> setting it to -user select- will ensure that
edited Oct 1 at 16:37
answered Sep 30 at 20:19
KarinG - Semper ITKarinG - Semper IT
12.8k1 gold badge8 silver badges40 bronze badges
12.8k1 gold badge8 silver badges40 bronze badges
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
add a comment
|
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
I figured out why mine wasn't working. Seems obvious now, but I missed it. On ANY contact field that you are sending the info for in the URL, you have to check the "Use contact id from URL" checkbox under "Default value" for that webform field. If any of the contact fields that you sending the value for do not have that box checked, none of the form will load. So the final form of the URL I used was yourdomain/yourwebform?cid2=xxx&aid=xxx&cid1=xx. Thanks for the help.
– guyiac
Nov 19 at 20:52
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
Yes passing cid via arguments does require the Contact Element to be configured as such. Happy to hear you got things working.
– KarinG - Semper IT
Nov 19 at 22:06
add a comment
|
Having "Update Existing Activity" setting turned on, prefills the form with the matching activity based on Type and Status. In case of multiple activities, it prefills/updates the first one.
Adding '&activity1=activityID' in your webform url, irrespective of the 'Update Existing Activity' setting, will prefill and update the activity (with id=activityID).
In case of revisioning you might need to provide latest activity ID in url or it might not work. Think you could have some custom code or configuration in view to fetch the latest activity id for a contact, to make it work.
add a comment
|
Having "Update Existing Activity" setting turned on, prefills the form with the matching activity based on Type and Status. In case of multiple activities, it prefills/updates the first one.
Adding '&activity1=activityID' in your webform url, irrespective of the 'Update Existing Activity' setting, will prefill and update the activity (with id=activityID).
In case of revisioning you might need to provide latest activity ID in url or it might not work. Think you could have some custom code or configuration in view to fetch the latest activity id for a contact, to make it work.
add a comment
|
Having "Update Existing Activity" setting turned on, prefills the form with the matching activity based on Type and Status. In case of multiple activities, it prefills/updates the first one.
Adding '&activity1=activityID' in your webform url, irrespective of the 'Update Existing Activity' setting, will prefill and update the activity (with id=activityID).
In case of revisioning you might need to provide latest activity ID in url or it might not work. Think you could have some custom code or configuration in view to fetch the latest activity id for a contact, to make it work.
Having "Update Existing Activity" setting turned on, prefills the form with the matching activity based on Type and Status. In case of multiple activities, it prefills/updates the first one.
Adding '&activity1=activityID' in your webform url, irrespective of the 'Update Existing Activity' setting, will prefill and update the activity (with id=activityID).
In case of revisioning you might need to provide latest activity ID in url or it might not work. Think you could have some custom code or configuration in view to fetch the latest activity id for a contact, to make it work.
edited Sep 30 at 21:43
answered Sep 30 at 18:24
Deepak SrivastavaDeepak Srivastava
3461 silver badge6 bronze badges
3461 silver badge6 bronze badges
add a comment
|
add a comment
|
This should work but is a bug in the latest version of Webform CiviCRM. Will open a ticket.
(Update)
Webform requires that the form is configured a certain way on the civicrm tab for activities in order to load the activity. It appears that at least 1 contact on the form needs to be set as a participant on the webform for the autoload to work. nb. I'm going to investigate further if other combinations will or will not work.
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
|
show 4 more comments
This should work but is a bug in the latest version of Webform CiviCRM. Will open a ticket.
(Update)
Webform requires that the form is configured a certain way on the civicrm tab for activities in order to load the activity. It appears that at least 1 contact on the form needs to be set as a participant on the webform for the autoload to work. nb. I'm going to investigate further if other combinations will or will not work.
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
|
show 4 more comments
This should work but is a bug in the latest version of Webform CiviCRM. Will open a ticket.
(Update)
Webform requires that the form is configured a certain way on the civicrm tab for activities in order to load the activity. It appears that at least 1 contact on the form needs to be set as a participant on the webform for the autoload to work. nb. I'm going to investigate further if other combinations will or will not work.
This should work but is a bug in the latest version of Webform CiviCRM. Will open a ticket.
(Update)
Webform requires that the form is configured a certain way on the civicrm tab for activities in order to load the activity. It appears that at least 1 contact on the form needs to be set as a participant on the webform for the autoload to work. nb. I'm going to investigate further if other combinations will or will not work.
edited Oct 5 at 11:43
answered Oct 1 at 14:16
Jamie NovickJamie Novick
5382 silver badges9 bronze badges
5382 silver badges9 bronze badges
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
|
show 4 more comments
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
I think this is right. I've tried all the iterations for the URL and I can't get it to work.
– guyiac
Oct 1 at 14:19
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
If you think there is a bug please do let us know - we've got this working on a number of sites though; URLs in this format: case-worker-form?cid2=41218&aid=19153 work fine as long as the receiving webform is configured properly.
– KarinG - Semper IT
Oct 1 at 15:27
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
I just ran a test with our webform civicrm 5.x latest - commit 76b444bf5192ddf4663a0222540684a230d8e39e Merge: b54ddfd ef2a518 Author: Karin Gerritsen <karin@semper-it.com> Date: Thu Sep 12 11:24:26 2019 -0600 Merge pull request #251 from colemanw/rel7 - and all is working well. Will add screenshots to my answer.
– KarinG - Semper IT
Oct 1 at 15:51
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Jamie: can you please either open an issue with details on how to reproduce or acknowledge there is no bug - that passing on aid in URL works as described by me in both 4.x and 5.x?
– KarinG - Semper IT
Oct 3 at 12:10
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
Hi @karinG-SemberIT - Sorry ran out of time last week. I've done some more investigating and it seems that the activity ID is loaded but only in certain scenarios where the source/target/assignee fields are being set by the form. There may also be a bug with the "none" option. In your example above you set the activity participants to be contacts on the form.
– Jamie Novick
Oct 5 at 11:41
|
show 4 more comments
Thanks for contributing an answer to CiviCRM Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcivicrm.stackexchange.com%2fquestions%2f33201%2fprefill-webform-with-civicrm-activity-data%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What about VBO to modify a field ?
– Jacques-Marie Moranne
Oct 1 at 20:54
For Bulk operations - absolutley. But it’s a lot of overhead to update a single activity.
– KarinG - Semper IT
Oct 1 at 21:20
Guy: did you have a chance to review the screenshots I posted? Let me know of there is anything else I can add to help you make this work.
– KarinG - Semper IT
Oct 8 at 13:20