-
Hi there Thank you in advance for any suggestion. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @mixmaniax I'm not quite sure which component you are referring to when you say "photo component" ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the additional context @mixmaniax I've come up with a solution that may work for you, you'd just need to style it to your liking: Step 1 - Remove the clear attachment button i.e. the 'X'Add an embed to the top of your screen with the following content: <style>
.delete-button {
display: none !important;
}
</style> Step 2 - Clear Attachments buttonAdd a button to your form and give it a name. Also configure conditions for the button as follows: JavaScript binding return (!$("State.clear") || $("State.clear") === "false") && $("New Form.Fields.Attachment")?.length > 0; We are checking to see if if the Clear Attachments button has been clicked, but also we don't want to show the button if there are no attachments uploaded. Step 3 - Are you sure promptAdd a container with a warning message and two buttons for Yes/No. Add a condition to the container as follows: For the Yes button, define two actions as follows: Finally for the Cancel button, define the same action as above for setting the clear state to 'false'. |
Beta Was this translation helpful? Give feedback.
Thanks for the additional context @mixmaniax
I've come up with a solution that may work for you, you'd just need to style it to your liking:
Step 1 - Remove the clear attachment button i.e. the 'X'
Add an embed to the top of your screen with the following content:
Step 2 - Clear Attachments button
Add a button to your form and give it a name.
Define actions for on click and Update State; setting a variable named clear to 'true'.
Also configure conditions for the button as follows:
JavaScript binding
We are checking to…