New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forms contact tab #5685
Forms contact tab #5685
Conversation
Label: Feature request |
Label: WIP |
Label: WIP |
Label: Ready to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I test everything is ok
Tested. Works properly +1“ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a few issues. Please look at them. Also I'm worried that this doesn't have pagination. It has hard-coded limit of 999 rows. It can take some time to load all those data considering all the data that the contact detail page is already loading.
$builder->createField('inContactTab', 'boolean') | ||
->columnName('in_contact_tab') | ||
->nullable() | ||
->build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a one liner. See for example https://github.com/mautic/mautic/blob/staging/app/bundles/WebhookBundle/Entity/Log.php#L73.
/** | ||
* @return mixed | ||
*/ | ||
public function getInContactTab() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really return mixed
? The $inContactTab
property is annotated as bool
. (the same in the setter)
If it will be bool, it would be nice to call this method isInContactTab()
as it makes it more human friendly :)
|
||
/** | ||
* Return Forms with results to contacts tab | ||
*ľ. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this Slovak weirdo doing here? 🤣 (and bellow too)
* Return Forms with results to contacts tab | ||
*ľ. | ||
* | ||
* @param null $leadId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type hint should have been int|null
, right?
'RETURN_ARRAY' | ||
); | ||
if ($permissions['form:forms:viewown'] || $permissions['form:forms:viewother']) { | ||
if (!$permissions['form:forms:viewother']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the first if necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's from here. I am gonna fixed it
$permissions = $security->isGranted(['form:forms:viewown', 'form:forms:viewother'], 'RETURN_ARRAY'); |
This PR works, great job @kuzmany. Can you add a documentation? We can merge it then. |
@Maxell92 thanks, docs added mautic/documentation#265 Label: Pending feedback |
Great, thank you. We will merge it after all issues in that PR will be solved :) |
Questions on this. What is the use of this one when this exact same data is displayed in the History tab? If you click the button on the left of the timeline entry for the form results, it displays the form result data. |
This is not something that belongs in core as a new feature. Alan has correctly identified the reason behind this. |
My suggestion would be to create a plugin for this behavior if it's still desired. |
Why you don't vote to community if they interest to the feature? Feature is useful, with better UX and you selective forms, instead timeline views. This PR added little touch of CRM, you can attach to profile Orders, Contacts, Request a demo etc. In future we can expend this PR with many other features. Maybe you can create channel when you get feedback before PR is done (ready to commit with the documentation). We should save a lot of time. |
So how is this different than what is already shown in the History tab for form submission entries though? This at face value is a duplicate feature for what’s already there. Also keep in mind that this is a marketing automation project, not a CRM. It’s not in interest of the project to make it a CRM. |
You can choose relevant forms. Many forms we use, just few are relevant to contact for company business. Maybe you can ask non-tech people which variant do they like. I bet, If they want work with certain contact, this PR is more helpful like timeline entries. |
Yes but there are lots of relevant parts of Mautic and forms are just part of it. Some may put more value on emails opened or assets downloaded or campaigns over forms submitted. At some point, displaying the same data in multiple places will become bloatware. |
The goal of this function its to can see clearly some info like all the reservations i v done all the orders i ve done
we plan to use this info intensevly in our strategy in the future
alan if you want we can have a talk.
I think it not a redudsncy but a function easy to use for the customer.
Envoyé de mon iPhone
… Le 31 mars 2018 à 07:32, Alan Hartless ***@***.***> a écrit :
Yes but there are lots of relevant parts of Mautic and forms are just part of it. Some may put more value on emails opened or assets downloaded or campaigns over forms submitted. At some point, displaying the same data in multiple places will become bloatware.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I can understand the value in that. But that’s your specific marketing strategy. I’ve seen a lot of marketing done through Mautic that does not rely on forms as different marketers put an emphasis on different parts of Mautic. This would only benefit a subset of the marketers leveraging your same strategy. That’s why we feel this would be better suited as a plug-in since it’s replicating the information already displayed in the same page but adds emphasize to the data for a specific marketing strategy. |
Finally bring this feature as plugin https://github.com/kuzmany/mautic-extendee-form-tab-bundle |
Bugfix/feature donate by www.newcom4u.ch
Description:
PR added forms as tab to contacts detail page.
Also PR add new option to forms - "Show results in contacts tab"
This feature allow users add relevant forms contact result to details (for example - orders, reservation etc)
Steps to test this PR:
php app/console doctrine:migrations:migrate
orphp app/console doctrine:schema:update --force