I am new to the adaptive cards and till now I have not tried with resetting the form now I got the requirement to reset the form. I don't have any idea how to clear the selected values in adaptive cards. Could any one please help me
Related
I am getting some data from an API call and I want to display them in an adaptive card as a choice set, then the user will be able to choose one or more choices to do action on them. The problem is that the array of choices is dynamic. My question is how to pass an array to the choice set in the adaptive card. I am writing the adaptive card on https://adaptivecards.io/designer/
here is an example of what I want:
Here is the way to do this:
Set the array in this way, each value has title and value as choices:
And from the adaptive card, in the ChoiceSet, call it this way:
I am trying to achieve following scenarios through adaptive cards. I have tried many ways but still not able to reach any far by my expectation.
Scenario one
I am trying to build a feedback rating card which has 3 images. As soon as a user clicks on any of the image, I would like both Action.ToggleVisibility and Action.Submit event to trigger at the same time. Is it possible to bind two events on a image in adaptive cards?
Scenario two
Since the first option did not work for me, I tried to add the radio buttons along with the existing images and a Submit button separately. But this time, It was found that the radio button does not have an option to associate an image with it. Also, the alignment of the choice set cannot be changed from vertical to horizontal. Is there any workaround for this?
Hi using adaptive cards on my chatbot ui, i have a Adaptive card of "type": "Input.Date".When the user opens up the date panel, i need to high light few dates based on custom logic. is that something that adaptive cards implementation supports. I have a specific scenario where input.date selection should be used to pre-filter input.time as part of the same card.
That is not currently supported in the property set of the Input Date element
http://adaptivecards.io/explorer/Input.Date.html
You should request this as a feature on the GitHub site:
https://github.com/Microsoft/AdaptiveCards/issues
I have an adaptive card which has multiple input controls. and instead of submit I have show Details button on clicking of which I need to show the details based on inputs provided. Is there a way to refer to the values dynamically and show the content of the details cards based on what is chosen in the main card?
No, that is not possible.
The ShowCard contains the entire JSON payload of another complete card and since the cards are declarative, rather than dynamic, you need to know the ShowCard payload at the time you create the original JSON
I am creating a page and the page has an editable data grid (I'm actually using jqgrid). The user can add, delete, and edit the rows of the grid. There are also some other form fields on this page such as text boxes and drop downs, but they are not part of the grid.
From a usability perspective which of the options do you think is best and why?
User manages the grid separately from the rest of the page. This means that there is a save button on the grid. So the user can save a grid row to the db without clicking the submit button. When the submit button gets clicked, the non-grid form fields get sent to the server.
user manages grid and other fields dependent upon each other. This is like an "Everything or nothing scenario." When you click the submit button, all of the form fields get submitted an saved the db along with the grid fields. If there is a validation error, nothing gets saved.
If there is a better way to handle this type of situation that I did not list, please let me know.
What I was thinking when I was in a similar situation, is how important it's that the user fills the other form fields. If they are optional and the grid is more important I would have the submit button in the grid but if I want the user to fill all the fields, the button should be at the end. In the case where the button saves the whole form, you can have a type of warning if the user skips some fields or you can have a deactivated button.
The second thing I thought was the height of the page. If the button hides 'above the fold' there is a high posibility that some users won't see it and the data won't be saved. So in that case, maybe you should have it in the grid. I would check analytics about screen resolutions.