<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/discussions/f/user-interface/12889/could-not-display-interface-please-check-definition-and-inputs</link><description>Hello, 
 I&amp;#39;m trying to implement a &amp;#39;Check box&amp;#39; functionality, with only one choice label and one value, when I do that it throws me the following error 
 &amp;quot;Could not display interface. Please check definition and inputs. Interface Definition: Expression</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57938?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 14:21:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bcdfa40-b608-42f4-bce7-fc9b960c04ab</guid><dc:creator>Abhishek Gaddam</dc:creator><description>The value and choice value might have a datatype mismatch,you can solve the issue either by casting ( if you are using a localvariable in value,cast(1,local!value)or if you are using a rule input in the value change the data type to integer.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57917?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 07:08:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed8f2d1b-ec61-4915-a8b7-0b1e31869e79</guid><dc:creator>Aswini </dc:creator><description>Hi nellorea,&lt;br /&gt;
&lt;br /&gt;
I think you declared rule input as text but your choice values as an integer.&lt;br /&gt;
Please check whether your choiceValue is text or not.&lt;br /&gt;
&lt;br /&gt;
Please try this code once&lt;br /&gt;
&lt;br /&gt;
a!checkboxField(&lt;br /&gt;
label: &amp;quot;Checkboxes&amp;quot;,&lt;br /&gt;
labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;
choiceLabels: {&amp;quot;Option 1&amp;quot;},&lt;br /&gt;
choiceValues: {&amp;quot;1&amp;quot;},&lt;br /&gt;
value: ri!a,&lt;br /&gt;
saveInto: ri!a,&lt;br /&gt;
validations: {}&lt;br /&gt;
)&lt;br /&gt;
-&amp;gt; Choice Labels and Choice Values must be the same length.&lt;br /&gt;
-&amp;gt; And, Coming to data type as hemanthn said &amp;quot;The datatype is based on what value you are saving, whether its a integer or text or boolean, based on that selection you can define the datatype&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Aswini&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57913?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 06:28:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5341e428-124d-4274-a9df-885dfbaeb61a</guid><dc:creator>amits0004</dc:creator><description>&lt;p&gt;Hello nellorea0001,&lt;/p&gt;
&lt;p&gt;I replicated your issue, have a look it might be helpful for you.&lt;/p&gt;
&lt;p&gt;here in the choice value, you are having an integer datatype, whereas in the rule input, there is a datatype mismatch.&lt;/p&gt;
&lt;p&gt;use inverted commas and see if it works.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/Appian_5F00_checkbox.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/Appian_5F00_checkbox.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Amit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57912?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 06:15:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1310ea0-ba4e-4f3b-89ad-70e22b5a0728</guid><dc:creator>rajats246</dc:creator><description>It seems issue is with data type which you are using for RI and choice value are not same.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57911?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 06:02:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3990ee8-1046-4a55-a8fb-c7075e16836f</guid><dc:creator>ravalik</dc:creator><description>Hi nellorea0001,&lt;br /&gt;
&lt;br /&gt;
As per my understanding you need to check the data type of the rule input.This is also one of the reason for the issue occurred.&lt;br /&gt;
&lt;br /&gt;
please find the sample code and work around with your use case accordingly.&lt;br /&gt;
&lt;br /&gt;
a!checkboxField(&lt;br /&gt;
    label: &amp;quot;Equipments&amp;quot;,&lt;br /&gt;
    labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;
    choiceLabels: {&amp;quot;1262&amp;quot;, &amp;quot;1264&amp;quot;, &amp;quot;1266&amp;quot;,&amp;quot;1268&amp;quot;,&amp;quot;1270&amp;quot;,&amp;quot;1272&amp;quot;},&lt;br /&gt;
    choiceValues: {1, 2, 3, 4, 5, 6},&lt;br /&gt;
    value: ri!example,&lt;br /&gt;
    saveinto: ri!example,&lt;br /&gt;
    validations: {}&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57910?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 05:41:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29bf352e-f44d-4042-a34f-bb6a94d186a4</guid><dc:creator>Bindu</dc:creator><description>Hi nellorea,&lt;br /&gt;
&lt;br /&gt;
Below code sample may help you which contains only one checkbox with one value to select.&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
  local!checkbox1Input,&lt;br /&gt;
  local!checkbox1Value: &amp;quot;Test&amp;quot;,&lt;br /&gt;
  with(&lt;br /&gt;
    a!checkboxField(&lt;br /&gt;
      label: &amp;quot;Check Box &amp;quot; &amp;amp; local!checkbox1Input,&lt;br /&gt;
      choiceLabels: local!checkbox1Value,&lt;br /&gt;
      choiceValues: local!checkbox1Value,&lt;br /&gt;
      value: local!checkbox1Input,&lt;br /&gt;
      saveInto: {&lt;br /&gt;
        local!checkbox1Input&lt;br /&gt;
      }&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Bindu&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57909?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 05:40:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e9513d7a-4a18-411b-8c58-b1d7d3bdf84c</guid><dc:creator>rajats246</dc:creator><description>please share your code and data type for the variable which you have provided&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57908?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 05:26:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35db09a4-b77d-4d95-be88-55448d4e5ff5</guid><dc:creator>deviratnamv</dc:creator><description>Hi nellore,&lt;br /&gt;
&lt;br /&gt;
Below notes might be helpful for you&lt;br /&gt;
-&amp;gt;Choices display in the same order as defined in the Choice Labels parameter. The Choice Labels argument cannot be null.&lt;br /&gt;
-&amp;gt;Choice Labels and Choice Values must be the same length.&lt;br /&gt;
-&amp;gt;Choice Values cannot contain nulls or duplicate values.&lt;br /&gt;
&lt;br /&gt;
a!checkboxField(&lt;br /&gt;
  label: &amp;quot;Label name&amp;quot;,&lt;br /&gt;
  instructions: &amp;quot;Instruction content&amp;quot;,&lt;br /&gt;
  choiceLabels: {&lt;br /&gt;
    &amp;quot;Choice labelname&amp;quot;&lt;br /&gt;
},&lt;br /&gt;
  choiceValues: {&lt;br /&gt;
   &amp;quot;Choice labelvalue&amp;quot;&lt;br /&gt;
 },&lt;br /&gt;
  value: ri!ruleInput,&lt;br /&gt;
  saveInto: ri!ruleInput&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/57887?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 14:26:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc35ff5e-c50b-42c2-b7ff-e6c2bf10bbdd</guid><dc:creator>hedn89</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Seems like the choiceValues and Value are not same. Can you please check if  you have double quotes in either the choiceValues or the Value, since that will make one value a integer and other a text, which will throw the error.&lt;br /&gt;
&lt;br /&gt;
The value for the checkbox should be within the list in the ChoiceValues list, if not it will throw an error.  the below syntax will fail, because of the double quotes for value : &amp;quot;1&amp;quot;, if you remove the quotes it should work.&lt;br /&gt;
&lt;br /&gt;
=a!checkboxField(&lt;br /&gt;
  label: &amp;quot;Test&amp;quot;,&lt;br /&gt;
  instructions: &amp;quot;Test for Error&amp;quot;,&lt;br /&gt;
  choiceLabels: {&lt;br /&gt;
    &amp;quot;Test&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  choiceValues: {&lt;br /&gt;
    1&lt;br /&gt;
  },&lt;br /&gt;
  value: {&amp;quot;1&amp;quot;}&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The datatype is based on what value you are saving, whether its a integer or text or boolean, based on that selection you can define the datatype.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>