title: How do you populate Adaptive Card input values on the renderer side after a selection is made in a choice set?
body: <p>I am using adaptive card templating in bot framework. When user selects a particular value from a dropdown, based on the selection, few input fields on the input form card should be auto populated. How to achieve this?</p>
  <p>Based on the dropdown, if user chooses 'myself', his email id should be auto populated in his/her email address textbox(email address I can get from user profile stored in user state).
  The adaptive card I am using is as below:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;type&quot;: &quot;AdaptiveCard&quot;,
      &quot;$schema&quot;: &quot;http://adaptivecards.io/schemas/adaptive-card.json&quot;,
      &quot;version&quot;: &quot;1.2&quot;,
      &quot;body&quot;: [
          {
              &quot;type&quot;: &quot;TextBlock&quot;,
              &quot;text&quot;: &quot;Please enter the email Id, on behalf of whom you want to raise the request.&quot;,
              &quot;wrap&quot;: true
          },
          {
              &quot;type&quot;: &quot;Input.ChoiceSet&quot;,
              &quot;id&quot;:&quot;dropdown&quot;,
              &quot;choices&quot;: [
                  {
                      &quot;title&quot;: &quot;Myself&quot;,
                      &quot;value&quot;: &quot;Myself&quot;
                  },
                   {
                      &quot;title&quot;: &quot;Other&quot;,
                      &quot;value&quot;: &quot;Other&quot;
                  }
              ],
              &quot;placeholder&quot;: &quot;Raise request for&quot;
          },
          {
              &quot;type&quot;: &quot;Input.Text&quot;,
              &quot;id&quot;: &quot;email&quot;,
              &quot;placeholder&quot;: &quot;Enter email address here&quot;,
              &quot;validation&quot;: {
                  &quot;necessity&quot;: &quot;Required&quot;,
                  &quot;errorMessage&quot;: &quot;Email address is required&quot;
              }
          },
          {
              &quot;type&quot;: &quot;ActionSet&quot;,
              &quot;actions&quot;: [
                  {
                      &quot;type&quot;: &quot;Action.Submit&quot;,
                      &quot;title&quot;: &quot;Submit&quot;,
                      &quot;data&quot;: &quot;Submit&quot;
                  }
              ]
          },
          {
              &quot;type&quot;: &quot;ActionSet&quot;,
              &quot;actions&quot;: [
                  {
                      &quot;type&quot;: &quot;Action.Submit&quot;,
                      &quot;title&quot;: &quot;Cancel&quot;,
                      &quot;data&quot;: {
                          &quot;id&quot;: &quot;stepCancel&quot;
                      }
                  }
              ]
          }
      ]
  }
  </code></pre>
  <p>I used actions instead of actionset. The card looks something like this:</p>
  <pre><code>{
      &quot;type&quot;: &quot;AdaptiveCard&quot;,
      &quot;$schema&quot;: &quot;http://adaptivecards.io/schemas/adaptive-card.json&quot;,
      &quot;version&quot;: &quot;1.2&quot;,
      &quot;body&quot;: [
          {
              &quot;type&quot;: &quot;TextBlock&quot;,
              &quot;text&quot;: &quot;Please enter the email Id, on behalf of whom you want to raise the request.&quot;,
              &quot;wrap&quot;: true
          },
          {
              &quot;type&quot;: &quot;Input.ChoiceSet&quot;,
              &quot;id&quot;: &quot;dropdown&quot;,
              &quot;choices&quot;: [
                  {
                      &quot;title&quot;: &quot;Myself&quot;,
                      &quot;value&quot;: &quot;Myself&quot;
                  },
                  {
                      &quot;title&quot;: &quot;Other&quot;,
                      &quot;value&quot;: &quot;Other&quot;
                  }
              ],
              &quot;placeholder&quot;: &quot;Raise request for&quot;
          },
          {
              &quot;type&quot;: &quot;Input.Text&quot;,
              &quot;id&quot;: &quot;email&quot;,
              &quot;placeholder&quot;: &quot;Enter email address here&quot;,
              &quot;validation&quot;: {
                  &quot;necessity&quot;: &quot;Required&quot;,
                  &quot;errorMessage&quot;: &quot;Email address is required&quot;
              },
              &quot;inlineAction&quot;: {
                  &quot;type&quot;: &quot;Action.Submit&quot;,
                  &quot;title&quot;: &quot;Submit&quot;
              }
          }
      ]
  }
  </code></pre>