• 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

Viewing 1 replies (of 1 total)
  • Thread Starter Kevin

    (@kpudlo)

    Well I’ve done some more testing and I’ve gotten everything to work correctly, however the issue is that the lookup within the function of the shortcode doesn’t refresh after changing the value within the drop down field.

    So I’m thinking I should probably look into either doing something where I have an HTML field for each of the groups in the drop down, and then do conditional logic for whether or not the field is visible, or possibly look to some sort of script option. I don’t think there’s a way to do it otherwise.

Viewing 1 replies (of 1 total)
  • The topic ‘Variables and HTML field’ is closed to new replies.