Skip Navigation

[Resolved] toolset-edit-post-link is opening post instead of edit form content template

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by mikaelD 5 years ago.

Assisted by: Shane.

Author
Posts
#1373389

I am trying to:

Set up a front end form to edit a post.

Link to a page where the issue can be seen:

hidden link

I expected to see:

The link generated by "toolset-edit-post-link" shortcode to direct me to the Content Template containing my edit form

Instead, I got:

The link generated by "toolset-edit-post-link" shortcode takes me to the front-end post with the following url

hidden link post type slug>/<post_name>/?content-template-id=<form template id>

#1373423

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mikael,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the site so that I can have a look at this one for you ?

The private fields have been enabled for your next response.

Thanks,
Shane

#1373435

Hi Shane,

I actually figured out the issue. I needed to add the "Post Content" elementor widget to my Single Post Template in order for Toolset to inject the edit post form.

I do another unrelated question.

Is there a way to populate hidden fields in the Toolset form before it is submitted? Either with javascript or another way?

#1373437

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mikael,

Yes there is a way to do it.

It just depends on what you want to populate it with.

Take a look at this below.

https://stackoverflow.com/questions/10545573/jquery-to-populate-input-or-textarea

THanks,
Shane

#1373455

Hi Shane,

I implemented code similar to that, and I can see the hidden fields "value" is updating as expected in the HTML, but after I submit the form, the post still has its old value.

Maybe I can explain what I want to do.

I am trying to use Toolset custom post field values inside an Elementor single post template.

Certain widgets have both a "Dynamic Text" and a "Dynamic Link" input. I want to use the same custom field value for both. But if the Custom Field type is text I can't use it in the Dynamic Link field and if the custom field type is URL then I can't use it in the dynamic text field.

So I am creating a duplicate version of the custom field so that I can autopopulate it with the same value as entered in the form and I have the same data as both plain text and URL field

#1373461

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mickael,

How are you hiding the field?

Are you using css?

Please let me know.

Thanks,
Shane

#1373491

I figured it out. I was trying to use the Generic hidden field element using the field slug.

Instead I used the custom field element in the form and just used CSS to hide it. Works great now. You can close the ticket!

#1374023

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mikael,

Awesome Happy you were able to resolve the issue.

However the ticket will need to be marked as resolved from your end 🙂

Thanks,
Shane

#1374171

My issue is resolved now. Thank you!