Variables and HTML field
-
Hello all,
So I’m working on a project (using Xampp right now) and I’m trying to return the description of the BuddyPress group selected from a drop down menu.
I figured I’d try using a shortcode to pull in the value of the drop down menu and return the BuddyPress group description, which I’ve gotten to work. If I do the following code
[bps_group_description id=2]
(or whatever number for the respective group) it works, so I know it seems possible!Where I’m having issues is having the value of the field transfer correctly to the HTML shortcode.
I can get the HTML to reflect the value of the drop down field by using
%field_slug%
If I use a variable called
gid
I can get the shortcode to read the variable via[bps_group_description id={variable:gid}]
as long as I set the variable to a number, like 2.If I set the variable to
%field_slug%
however, it doesn’t seem to update based upon selection.So my issue right now is that for some reason I can’t get the variable to update in the HTML when I change the selection in the drop down field.
Are there any other suggestions to get this working? I feel like I have all the pieces of the puzzle available, I just need to bring them together! I have the latest Caldera Forms and WordPress installed.
Thank you,
Kevin
- The topic ‘Variables and HTML field’ is closed to new replies.