Mark
Forum Replies Created
-
IT’S WORKING NOW! What on earth… *shrugs in confusion*
Hello @wpmudevsupport11,
This doesn’t make the slightest bit of difference.
in the Upload field setting on the form, can you please check and confirm if it’s still set to show files in media library or this option is disabled? it needs to be enabled so files would be added to Media Library on upload
Yes, it’s enabled https://a.cl.ly/v1uWBZb0
And is that field set to single or multiple uploads?
Multiple https://a.cl.ly/12ukbXEO
Did you update site/Forminator meanwhile?
Yes, the theme and plugins have been updated since. I’ve installed 1.23.3 and the same is happening.
Not sure why this issue would come back as I haven’t really done anything with that side of things but images are uploading but not attaching to post.
Next, edit your “Upload” field there : don’t make changes but take a screenshot of the part that shows “Field Label” and “Field Name” settings. Share this screenshot with us, please.
Next, scroll the same page down a bit to see the “Sub-fields” section. Take a screenshot of it and share it with us.
Finally, open your form for editing and take a screenshot of the “Custom fields” section of your form’s “postdata” field – the part where you map form upload filed to the ACF “Upload” field.
Finally, open your form for editing and take a screenshot of the “Custom fields” section of your form’s “postdata” field – the part where you map form upload filed to the ACF “Upload” field.
BINGO! The custom field was missing in Forminator. All sorted.
Thanks for your patience with me and for helping so greatly.
Sorry for the delay in responding. I’ve been away for a week.
I have this setup and the media is uploading to media library but I’m not seeing it attached to the posts: https://a.cl.ly/wbuL1Qdy
This is the code: https://codeshare.io/j0yVZL
As for the “winner option” – there is nothing about it in the form. It’s in ACF but I honestly am not sure how this relates to the form. Should it be possible to mark submitted nominee as winner when submitting the form?
Yes, I now realise this can be done within my theme. Thanks.
`I’m not sure how this is displayed exactly but it’s “outside” of Forminator. If it shows up after only publishing the post, maybe ACF is “doing something” on publication but, as you also confirmed, the Award is assigned. I just checked it again to make sure – the post is correctly created and has the Award, as well as Award Year assigned; ACF fields are set.
So the code does what it is supposed to. If something additional is needed to show those Awards for pending posts, then most likely it’s some additional code related to WordPress core actions or to ACF itself. I’m sorry but this isn’t something we can help further with.`
Ok, thats fair. I will dig around on Stack Overflow and ACF Forum.
The upload field should be passing URLs to the “Add photos” ACF field of “Nominee Submissions” group, right? Just let me know.
I’m not sure?! Some awards need multiple photos, such as Weather Event of The Year, Photographer of The Year others just need one photo. I have setup a repeater field for this as follows https://a.cl.ly/E0uXDERm but not sure this is the right way forward?
Hello @wpmudev-support8
This is fantastic. Thank you so much Adam!
I have added to the site and been careful to do everything has instructed but the Award is not being assigned while it’s pending, only after I have published it is the award then added. However when I looked in ACF it did appear the award was assign but not showing here: https://a.cl.ly/4guN6pEE
I noticed you missed the upload field when configuring this setup? It was included in the form I sent over to you as well as the winner option.
Hello.
Thank you, Adam.
Before you start I need to make a few things clear which I may not have mentioned.
1. I need the ability to remove an award from the front-end form so that users are not able to submit to Special Recognition for example. For that award I’ll be selecting the nominees and choosing winner from the back end. I may choose to change this at a later date. Maybe an exclusion of some sort in functions.php?
2. Here’s the JSON export: https://pastebin.com/Ly8yHL6b
Do you need any further calcification or anything here?
Apologies for the confusion, Adam. I appreciate your cooperation.
I have a post type for nominees
I have a post type for awards
I have a taxonomy for award year (It’s not a tag as I said before!).
I have field groups for the form and relationship field to link nominee and awards post types.
I would also like the ability to mark a nominee as winner for each award.
The main awards page i.e /categories will always display the current year until I switch out this option for the next year, after doing this I’ll add an option under “previous years” in the main description and add that as an option (I’ll build a standard layout for that later down the line).`
Here’s a video explaining things: https://a.cl.ly/rRugYOq0
- This reply was modified 3 years, 2 months ago by Mark.
Hello @wpmudevsupport12
Yep, it doesn’t seem to be passing the ID at all… https://a.cl.ly/BlubAYqL
Any thoughts? Sorry to come across impatient but I’m desperate to close this project.