Support Forum ยป User Profile

Forum Replies Created

Viewing 4 posts - 46 through 49 (of 49 total)
  • Author
    Posts
  • in reply to: โœ…How to trigger PHP code from a button click #21801
    MartinMartin
    Participant

    Thanks for that. I'll have a read and see where I get.

    in reply to: โœ…Removing the Submit button #21458
    MartinMartin
    Participant

    Perfect. Thanks for that.

    As an extra note I also added the .page-id-[page_id] ahead of that line so it only affected the specific page I was aiming for. Some pages I do want the submit and some I don't so this was spot on for my needs.

    As you say it's a rare case but perhaps this might be a useful addition to be applied as a checkbox setting against each form created? Might not be worth the effort if others don't have much need for it though.

    in reply to: โœ…Struggling with button code actions #21427
    MartinMartin
    Participant

    Awesome. Thanks for that. Of course it would be something silly and simple like the cache. I really should have thought of that myself - I'm clearly too old for all this ๐Ÿ˜‰

    All is now working as hoped and I can crack on with all the easy bits (extracting data from the database, crafting it into JSON to send to another system, triggering some workflows etc).

    in reply to: โœ…Struggling with button code actions #21415
    MartinMartin
    Participant

    Thanks for this.

    I have tried both options and still have no action happening in my form.

    I've first tried to change the code to replace my form name #button-code-test with body.

    I then reverted back to the original JavaScript and tried changing the Location setting from Users to Posts and set the post type to page.

    Neither of these worked. I also tried applying both changes and still no action is seen.

    Is there any way to tell even if the code is being run? Being new to this I'm not sure how I can see what actions are being triggered and what code is being run from a debugging perspective.

Viewing 4 posts - 46 through 49 (of 49 total)