This support ticket is created hace 5 años, 6 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Therefore, when selecting the custom image field for single image or for multiple images, I'm not sure what condition to setup.
As you can see on the screenshot, I placed both "Foto Perfil" and "Fotos para Anuncio" as <> to empty (because I was not sure what to put in that field).
It works fine if the User changes the photos (either one), but it also sends a notification if the user does not change the photos but instead change something else.
So what I want is to ONLY receive a notification if the user changes one of the photos. If they change anything else, I do not want to receive an email.
Based on the logic of this, the email notification should only be sent only if the image field is modified.
I'm assuming this is an edit form correct? So even if the image field hasn't change the notification is still sent. I think the issue is with the available logic for the fields.
I took a look at the available logic and there isn't an option that can be selected for this. I think this should come under the option for improvement.
Please let me know what you think of this so that we can move forward with this.
To me, it's only logical if there is a setting for notifying a user or admin about a specific custom field change and it's not working, then yea it should be fixed.
There are a lot of things that development team created without thinking it through before releasing. Sounds like Apple... create a product as is... release to the masses... and try to improve on the next one. Kind of crappy way of doing things from my point of view.
Anyways... yea please improve this asap. Thanks
While at it, maybe in the body of the notification have a placeholder or something that identify what changed. What I mean is, there is also no way to notify the user or admin of what has changed in the form, only a notification that it had changed.
I was trying to figure a workaround to get this to work for you but I wasn't able to unfortunately.
Maybe what you can try doing is to add a checkbox that is hidden and use js to check to see if the field value for the image has changed.
If it has changed then the js will fire and then select the checkbox. However we must load the checkbox unchecked initially. Then you can set your notification based on whether the checkbox is checked or not.
So you are saying to create a custom field (checkbox) for one the featured image and another for the other images (multiple images) and hide them with CSS. Then use JS to check the checkbox if there is a change on them.
I can create the checkboxes, do I create two? One for the feature image and another for the other images?
I know how to hide them.
I just don't know what the JS would be, can you help me out please?
You have to login as an user in order to see the edit form... I sent you the login on the private message... use incognito... once you login, click on Tamy's "Editar" button and it will take you to the form
The field above is the generic radio field that will be selected if the user modifies the image field. I did this based on the user pressing the x button beside the image.
This will trigger the field to be selected to a yes.
Now all that is needed is to setup the notification based on the modified radio field and you should get your desired results.