wizardist
Forum Replies Created
-
Forum: Plugins
In reply to: [Dynamics 365 Integration] Empty field records are created from a Twig Form@thepiweb disregard that one question regarding requirements.
It is not clear what happens yet. Try explicitly adding the “key” parameter to the {% form %} tag.
Lots of factors may come into play, including different JS scripts, potentially conflicting WordPress plugins, and also in some situations even CRM workflows.
Forum: Plugins
In reply to: [Dynamics 365 Integration] Empty field records are created from a Twig FormHi @thepiweb
Could you share the template? How do you ease the requirements?
Have you updated the plugin recently? What’s the version of the plugin and WordPress?
Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] Can’t connect to caching fileCould you share the PHP version, sqlite extension version, WordPress version?
Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] Entity binding in PHP codewordpresscrm_data_binding_columnsfilter is pretty much deprecated.The right way to access binding is by calling
ACRM()->getBinding()->getEntity().If you’re getting a non-NULL value, you can access
productid,name,descriptionand other fields right away.Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] Redirect with parametersThat would require custom code to be written.
wordpresscrm_twig_form_submit_successaction insrc/Form/Model.phphas two arguments, the submitted form with the new data, and the CRM record with new data too.You can
add_action()it and make a redirection by yourself.Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] Plugin not working on blocks/sectionsHi @erikdj
I was able to use
[msdyncrm_twig]in a “Custom HTML” block. That is probably the most appropriate block to use with V1 shortcodes.Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] Redirect with parametersHi @graham6117
Let me assume that ?id= holds the GUID of the record you are editing with a form.
The form tag doesn’t accept a
parametersargument – so it doesn’t make sense. You specify the record you’re eager to edit with therecordparameter. In your code you usecurrentrecordwhich is good.In terms of Twig syntax, the second example is close to excellent!
{% set redirectUrl = "/share/?id=" ~ currentrecord.id {% form entity="contact" name="Web Update" mode="edit" record=currentrecord redirect=redirectUrl %}HTH
- This reply was modified 7 years, 3 months ago by wizardist.
Forum: Plugins
In reply to: [Dynamics 365 Integration] twig custom form – double verificationForum: Plugins
In reply to: [Dynamics 365 Integration] twig custom form – double verificationHi @thepiweb
You can upgrade to 1.2.19 and have two or more forms on one page.
See the updated docs on custom forms: https://docs.alexacrm.com/wpcrm/twig/#displaying-custom-forms
Just don’t forget to add different “key” attributes to form tags.
Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] twig custom form – double verificationHi @thepiweb
The forms were not really designed to support a scenario with 2+ forms on a page.
However we can add a way for the system to distinguish submissions from different forms, either automatically or manually.
Thanks
Forum: Plugins
In reply to: [Dynamics 365 Integration] How can I add a function to Twig?Oh, noes. [msdyncrm_inline] is deprecated in favor of a more powerful [msdyncrm_twig].
HTH
Forum: Plugins
In reply to: [Dynamics 365 Integration] How can I add a function to Twig?Caching was not my original idea, it was rather order of execution, i.e. add_action() being called after the action has been already emitted. As for caching, could you share your environment details? Also, try dropping the Twig cache if it’s enabled (wp-content/uploads/wpcrm-storage/twig/*).
WordPress version, plugins, PHP version, things like executing inside VirtualBox with a shared folder mounted, etc. Anything can be relevant, because this is super-weird as I have the same exact code running just fine.
Forum: Plugins
In reply to: [Dynamics 365 Integration] How can I add a function to Twig?Hi Jon,
The code you’re using looks correct, and I checked – it works just fine. Are you sure you’re editing the functions.php file of the active theme? Also, where do you call add_action()? Inside another action handler or in the outermost scope of the file?
Pavel
Forum: Plugins
In reply to: [Dynamics 365 Integration] Dynamics Login Details Stored in plain textHi
The issue has been addressed in the latest update!
Thanks.
Forum: Plugins
In reply to: [Dynamics 365 Integration] Uncaught PDOExceptionHi @cheft
Please try to delete the /wp-content/uploads/wpcrm-storage/cache/ directory and reactivate the plugin again.