Hi all, I need your help! I have a user submission form that members choose from a dropdown how long they want their post to stay live on my site, this works fine but what I'd like to do is give the member submitting a post the opportunity to allow anyone viewing it to extend it by a specific time. The member submitting the post chooses from another dropdown on the submission form how long they want their post to be extended and I have an 'extend' button on the dynamic page which displays the post.
I've created the dropdown on the user submission and it saves to my collection as a text field in the format of HH:MM. I've also added an 'extend' button on the dynamic page.
What I'm struggling with is how to call the time that the post should expire from my collection (this is a date & time field), the extend time, add them together and update the date & time field with the new extended end time.
I hope this makes sense what I'm trying to do! And someone in this great community can help.