bootword
Forum Replies Created
-
Hi,
Now it works fine.
Thanks for the update and your work!Can you please click on the index:152 link in the console error, in order to see what code cause the problem?
Here: https://prnt.sc/rkawk9
I tried on the default wp-theme 2020 and on the third most popular Astra Theme (https://ww.wp.xz.cn/themes/astra/). There should not be any problems with jquery. After all, it does not appear anywhere else, only after sending the dynamic form. Tried in different browsers with disabled extensions.
Instructions as Tooltip is already a feature of ACF Extended
Yes, I know about that 🙂 But I didn’t see any tooltips on the front end, even with the appropriate settings. I tried again, it seemed to work now) However, in the dynamic form settings there is no display option instructions as a tooltip, it may be worth adding there: https://prnt.sc/rkb53w
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Forms and Location RulesMeanwhile, you can add the following code in your functions.php file in order to force “Advanced Settings” in all new field groups creation
Thanks for the help, the code works just fine.
It looks like your end goal is Elementor integration.
Right now, yes. But essentially this applies to any plugin that works with extended fields. For these are basic fields, it means that they will be displayed almost everywhere as usual, although they perform a completely different role.
In any case, thanks for clarifying why this is difficult to implement.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Forms and Location RulesIf both switches are added, it should be renamed to “Hide on front-end” and “Hide on back-end”, otherwise they would be contradictory.
It sounds good, two switches are a more complete solution for such cases.
However, it would be possible to add those switch when “Advanced settings” is enabled in the field group.
Maybe in this case it’s worth adding a global setting so that the “Advanced settings” option is enabled by default for all new field groups. For those who create many forms for the frontend it will be useful. Just one checkbox somewhere in the plugin settings.
Can you please provide further instructions on what the switch is supposed to do when it is enabled?
This switch should make the field purely for conditional logic. Yes, I can never save anything in this field, but it will be like a dead weight in all other places (for example other plugins that support ACF).
Imagine a complex Dynamic form. There may be several of these “Show advanced options” radio buttons or checkboxes. There can be 10 such forms on the site. And let’s say for each form you need to create such switches (because the logic of the forms is different). And then I go, for example, to the Elementor, where I want to display data from a normal field and see there: http://prntscr.com/r59hua
However, if I add a Layout field, for example, a Message or an Accordion, it will not appear anywhere. Only when displaying field groups. I wondered if it’s possible to create such a switch so that normal choice fields (checkbox, radio, select, true/false) lost the ability to store something and could not be used like a normal field anywhere. They can only perform a specific task because otherwise they will only get in the way.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Forms and Location Rules@hwk-fr, thanks. I will look forward to updates. I am sure this functionality will be useful to many.
There is one more case and I think it’s related to the current topic. When you create a complex form for the front-end (and sometimes for admin panel), you often need fields that are created solely for the logic of displaying other fields (Conditional Logic). Such fields will never be used to save and load user data (I guess the layout fields has similar logic). It would be helpful to have a quick switch to create such fields. And one more thing to quickly turn off the display of this fields in the admin panel (often such fields are created for the convenience of regular users). Usually for such purposes the choice types are used.
It might look something like this: https://prnt.sc/r507g9
Already now I can hide a specific field by activating “Advanced fields settings & validation”, but usually no other conditions or validation are needed for such logic fields.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Forms and Location RulesHello @hwk-fr,
Have you tried the “Post field groups” setting in the Advanced Tab, like in the screenshot I posted?
I tried this, but unfortunately this is not at all what I need.
The “post_id” setting is used to edit an existing post, but I don’t need to load data from the existing one, I don’t have it at all. I’m creating a new one and I just need the conditions to display field groups in frontend without using additional code.
For example: an application from a user is created through an ACFE Dynamic Form. If the user is not logged in or doesn’t have ‘customer’ role, I need to show him an additional group of fields. How the “Post field groups” can help here?
However, with the help of location rules, such a behavior could be easily set without extra lines of code, using only one form.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Forms and Location RulesThanks for the detailed answer!
The field group locations rules are quite special and only work in the administration of WordPress.
It’s a pity, given that there are all the necessary conditions. http://prntscr.com/r3fbsl It would be really useful if the location rules could be applied to Dynamic Forms.