New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Message based on previous selected item #4492
Comments
@go-sudo Could you please provide the JSON or plunker with the real data? Thank you, |
Hello @andrewtelnov I can not post real data with smarty, I get a suggestion from a good friend, but I do not know how to implent it with survey https://plnkr.co/edit/oRSKRQ9Cx8yU3aDv <script> var my_date_aray = [];{/literal} {foreach from=$orders item=order} my_date_aray["{$order.details.reference}"] = "{$order.details.order_date}"; {/foreach} {literal} </script>the issue that when I select on the dropdown an order, the html show the expiration date for all orders available on the dropdown (unsellected) and not the only the selected one Regards |
@go-sudo Unfortunately, your example doesn't work. We need the real data to see the issue. Thank you, |
Hello @andrewtelnov Please do not close this issue, I will make a html example for your I let you know that it works when i change the type from html to checkbox but I need to display the information as text or html
|
here is a demo based on html https://plnkr.co/edit/hV6XK8V6A9v78cFz regards |
@go-sudo opSystem should be "checkbox". Here is the updated example Thank you, |
Hello @andrewtelnov unfortunately, this is not what I'm looking for The order N1 will expire the 1 june 202 so when user click on order N2 he will get a message for only and only the selected order I try to make this work with HTML, and then I will use smarty Regards |
{
|
like this one #1046 but instead of dropdown i need to show text please |
Thanks to you, I Found a solution to my issue, I appreciate your help |
Are you requesting a feature, reporting a bug or asking a question?
Question
What is the current behavior?
I'm using smarty to show date of the selected item only (checkbox or dropdown)
but the messages display the information of all item, even those are not selected
What is the expected behavior?
I would like to display the information for only the selected item
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
https://i.im.ge/2022/06/23/uXGcBW.gif
Specify your
The text was updated successfully, but these errors were encountered: