I am using filter criteria in views for displaying data based on the input selected by the user. Actually the drop down values in filters are node values of two content types.When I add content to those respective content types the drop down values are updating but in filter criteria configuration the newly added node values are not being checked as shown below diagram    Even though the above node value is not being checked, the same value is being added to particular drop down as shown below.    If I check all values individually and manually and check the option Limit list to selected items the error not displaying but the problem is when I am adding another node value (for example LOS3) the drop down values are not updating.  I have googled it for this error and I have applied some patches which worked for some of them but no result.  How to overcome this issue?
122321
I am having a very odd problem with an exposed filter in one of my Views. The page I am talking about is here:   When I select one of the last 2 options in the menu (EPS Packaging Recyclers or Loose Fill Recycling Drop-off) I get an error that says An illegal choice has been detected. Please contact the site administrator. This is really weird to me because it only happens with these 2 options. I don't believe they are set up any differently than the other taxonomy terms. There's nothing all that special about them, its just a term that the admin selects when creating a location for the map.  Any ideas as to why this is happening or how to fix it?
59857
I'm trying to get through my first SalesForce mod and it's definitely been a rocky path. I have one task I'm trying to do, but this section is holding me back.  I have two custom fields.  One a pick list and the other a text box. I have added them to the Approve/Reject Approval Request section in the Opportunity page. I added the fields through the Select Fields to Display on Approval Page Layout and they DO show up on the Approve/Reject Approval Request section. I added them in like ().  However, just the label for the fields show, the field itself is nowhere to be found and can't be used.    You can see and even use the fields when you open the Opportunity page itself, but when you go to use the Approve/Reject, you can't do anything with them or see any values.  I was never a SalesForce user and got this tossed in my lap and really don't know my way around yet. I appreciate any help on this!!  Thanks!!  Kurt
83806
currently, I'm passing in a options array to the options attribute of a lightning-checkbox-group. I need to mimic the behavior of that tag, but I need to do it in html because I don't think I can get the checkboxes to display horizontally. I've tried &lt;template for:each and have not had any luck. My goal would be to pass in the same name/value pair array, loop through it and call the same change handler that is called when using lightning-checkbox-group. A simple code snippet would be awesome. This is what I've tried so far: {lineItemObjectInfo.data.fields.Reason__c.label}  &lt;template for:each={reasonOptions} for:item=&quot;option&quot; for:index=&quot;index&quot;&gt;      &lt;div key={option}&gt;          &lt;lightning-input onchange={handleChange}                            name={lineItemObjectInfo.data.fields.Reason__c.apiName}                            type=&quot;checkbox&quot; label={option.label}                            value={recordInput.fields.Reason__c}&gt;&lt;/lightning-input&gt;      &lt;/div&gt;  &lt;/template&gt;  That actually gets me pretty close. When changed it fires the change handler and fails when I'm trying to do a .join on the recordInput for the field: handleChange(event) {     const {target: {name, value}} = event;        switch (name ) {         case &quot;Reason__c&quot;:             this.recordInput.fields[name] = value.join(&quot;;&quot;);             break;         default:             this.recordInput.fields[name] = value;             break;     } }  I've also tried using a form tag with input and label tags but that didn't get me much further. The switch has been reduced for purpose of making it more clear. This is my original use of lightning-checkbox-group which functionally worked but styling is inflexible: &lt;div class=&quot;slds-col slds-size_3-of-12&quot;&gt;     &lt;lightning-checkbox-group     onchange={handleChange}     name={lineItemObjectInfo.data.fields.Reason__c.apiName}     label={lineItemObjectInfo.data.fields.Reason__c.label}     options={reasonOptions}     value={recordInput.fields.Reason__c}&gt;&lt;/lightning-checkbox-group&gt; &lt;/div&gt;
18651
I want to build a CAML - Query using the IN - Tag. The queried Column is a lookup-field to a Title of another list. When I query using the text-property everything works fine:     &lt;Where&gt;       &lt;In&gt;          &lt;FieldRef Name='page' /&gt;          &lt;Values&gt;             &lt;Value Type='Lookup'&gt;page1&lt;/Value&gt;             &lt;Value Type='Lookup'&gt;page2&lt;/Value&gt;             &lt;Value Type='Lookup'&gt;page3&lt;/Value&gt;          &lt;/Values&gt;       &lt;/In&gt;    &lt;/Where&gt;   This is giving me the wanted result: All rows with Lookups to page1, page2 oder page3 are returned.  When I try to achieve this using the IDs instead I get no results at all:  &lt;Where&gt;       &lt;In&gt;          &lt;FieldRef Name='page' LookupId='True' /&gt;          &lt;Values&gt;             &lt;Value Type='Lookup'&gt;5&lt;/Value&gt;             &lt;Value Type='Lookup'&gt;4&lt;/Value&gt;             &lt;Value Type='Lookup'&gt;3&lt;/Value&gt;          &lt;/Values&gt;       &lt;/In&gt;    &lt;/Where&gt;   I rechecked the IDs a dozen times. They are correct. When I change the query to multiple OR-Operations it works fine.  Is this a known limitation of SharePoint 2010 or do I just have to insert a "magic" word somewhere?
31908
Create a settings form for a module in Drupal 8 - when a user selects a View from a list, the drop down under it should populate with the displays in that view.  While the form updates the option list for the user, it also throws an error message on the screen "Illegal choice has been detected".  Here is the code (it doesn't paste very well):    getViewDisplays is the ajax callback that is populating the options.  Some people who have posted about this around the internet say to set #validated on the select field to TRUE, though, that doesn't necessarily feel right. I still want to validate the submission to do some checks.
64820
If you know the Index, Value or Text. also if you don't have an ID for a direct reference.  ,  and  are all helpful answers.  Example markup  &lt;div class="selDiv"&gt;   &lt;select class="opts"&gt;     &lt;option selected value="DEFAULT"&gt;Default&lt;/option&gt;     &lt;option value="SEL1"&gt;Selection 1&lt;/option&gt;     &lt;option value="SEL2"&gt;Selection 2&lt;/option&gt;   &lt;/select&gt; &lt;/div&gt;
70691
I have a content type, I'm trying to add a field that's a boolean. I want the options to be yes or no. This is something I thought would be relatively simple however, I keep getting an error message. I've attached 2 screenshots. 1 is the configuration for my boolean. The other is the error message my site gets. Can someone help me. What am I doing wrong?
108591
I have a form which allows the user to create extra "rows" using JQuery (using .clone) so that they can decide how many of the same information they need to submit. My issue is that I cannot work out how to access these form items within my controller.  the form that is being submitted may look like this  &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt; &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt; &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt;   Basically, the block between input and the select could be repeated an infinite number of times. When I submit to the controller I am then using FormCollection form to access the form elements. from there I am unsure how I can access the items that have been submitted. I thought of using a for loop and then accessing them via something like form["Amount"][i] but obviously that is not going to work.  Am I going about this the right way and if so, does anyone have any suggestions about how this might work?  Thanks in advance.
55621
Note: as a neophyte user, I'm not allowed multiple links or images. It has been suggested that I edit my original content in order to add updates. Also it's been suggested to edit the hyperlinks so they're not quite right. Hopefully you can sort out what's going on.  I've been following this post by Kristin Brinner "Drupal Tutorial: Use Views to Create an Alphabetical List of Taxonomy Terms" (at h ttp://getlevelten.com/blog/kristin-brinner/drupal-tutorial-use-views-create-alphabetical-list-taxonomy-terms) but my sample does not produce the results illustrated and by now I'm very confused.  Part 1: said to create new view showing taxonomy terms, display in grid format and create menu link. Done.  Part 2: grouped terms alphabetically (add Taxonomy term: Name, label it "Grouping", exclude from display, rewrite to max length = 1 and uncheck 'trim on word boundary' and 'add ellipsis'). Under Grid-Settings use "Grouping" apply to all displays. My view looks like the sample. Done.  Part 3, Create a Views page for each letter of the alphabet: said to add a Contextual Filter: Taxonomy term: Name. When the filter value is NOT in the url, display all results for specified field. Under More, click Glossary mode, character limit = 1. Note that I now have a Taxonomy term: Name in the Contextual Filter section. I don't know how to test these results.  Part 4, Create A-Z list (create a block that will display the list of first letters in a cute list above the grouping grids) says to add a new Contextual Filter for this block (override). When the filter value is not available, 'display a summary', sort by alphabetical, unformatted, display record count and display items inline. This isn't working as predicted, here is what the tutorial says should be the result: Image 1 in the diagram (h ttp://imgur.com/l9TbLyv). My content continues to look the same as it did previously in the exercise, i.e. like this: Image 2 in the diagram. However when I put "S" into the Preview with contextual filters, I get: Image 3 in the diagram. I was asked for screenshots, so without contextual filters is h ttp://imgur.com/zXCnsvA and with "s" in contextual filters is h ttp://imgur.com/7DF6UUD .  When I created the new contextual filter in Part 4, I got a copy of what was in the Page, so I have two contextual filters, both with Taxonomy term: Name. If I delete the first contextual filter from the block, then my preview shows the same information as Image 1 in the diagram. I think I'm missing something &amp;/or the blog post is unclear. Should I have started "this block override" with 0 contextual filters? I.e. Should I have started by deleting elements from the page which were copied into the block?  Part 5 instructs to "Add the alphabetical list on our page with the grouped terms and Go back to our Page display".  I've got the view working correctly now. The thing which stumped me was that adding a block created an entire copy of the original page which (philosophically) I don't understand. When there's a page and a block override which give instructions about the view, how does drupal know which instructions to pay attention to?  Thanks to all the folks who have helped.
104669
I have a feature that deploys content types, a list definition and template that uses these content types and finally a list instance. This feature is already in production.  Now we have a change request to add new views to this existing list. So I make the changes to schema.xml and upgrade the solution. But alas, the new views don't show up. If I create a new site, the list instance is created with the new views. I tried deactivating/reactivating, iisreset but still no success. Is there anything I'm missing?
64273
Currently trying to update a field every time a node is created or updated. However the value is not being populated within the node, do I have access to the node object with this particular hook? What could I be missing?    function vbtoken_node_update($node) {         entity_get_controller('node')-&gt;resetCache(array($node-&gt;nid));         $types = node_type_get_types(); //What are the current Node Content Types?       $yes = ($types['volunteer_project']-&gt;type);        if($node-&gt;type === $yes){           $hash = md5($node-&gt;title . $node-&gt;nid . $node-&gt;nid);         $hashed = substr($hash, 0, 6);         $node = node_load($node-&gt;nid);         $node-&gt;tcode[$node-&gt;language][0]['value'] = $hashed;         node_save($node);          watchdog('vbtoken', 'Added a new Token code to %nid', array('%nid' =&gt; $node-&gt;nid));          }         else          {           dpm('not working dude');         }      }
85543
I am using a view that has a contextual filter ("Content: Has taxonomy term ID") and a relationship ("Content: Taxonomy terms on node"); for some reason, I keep getting duplicated content. In the view settings I have "Distinct" checked.    Are there any other options I can look into?
41563
Here is the field I am trying to update, the far left is the picklist I am wanting to update. the field on the left is another picklist. both lists have the same values.   As you can see below I have tried a number of approaches. Is this possibly a limitation with the Javascript button?  Any help would be appreciated.   Example 1   00N5000000AIfdn = {!TEXT($User.New_Business_Admin__c)};   Error: Invalid or unexpected token error   Example 2   app.New_Business_Admin2__c = {!TEXT($User.New_Business_Admin__c)};   Error: Unexpected Token ; (I am not missing one nor do I have duplicates)   Example 3  app.New_Business_Admin2__c = '{!$User.New_Business_Admin__c}';   Error: Field New_Business_Admin__c is a picklist field. Picklist fields are only supported in certain functions.   Example 4  00N5000000AIfdn = {!$User.New_Business_Admin__c};   Error: Field New_Business_Admin__c is a picklist field. Picklist fields are only supported in certain functions
3157
I followed the steps in the link  to Show/Hide a field in a form, based on the value of another field.  What I am having an issue with now is getting this to work on a New List Form, that I created from SharePoint Designer. I have SharePoint foundation 2013, so no access to InfoPath or conditionally hiding a field. The New form needs to be created because of other restraints found within SharePoints default forms.  Any help is appreciated. Thank you
95128
Example set up:  Content type news with fields   Body (translatable) date (another date field beside node published date - translatable) type of news (list field - not translatable, the news should be of the same type in every language)   View with filters:   Published: yes Content type: news Content language: currently activated interface language field "type of news" -> exposed to the user   Default language in the project is German.  When I go to the view in German and choose a type of news in the exposed filter there is no problem - the expected news are listed. The problem appears when I enter the page in English and I choose a type of news -> no results are found although the same nodes are translated into English.  I found out that this is due to the fact that the "type of news" values in the fields table are saved with the language id of the original node which is 'de' but the full view query expects the field value to have a language code 'en' (like the currently activated language has).  See this query and especially the INNER JOIN:   SELECT node__field_date.field_date_value AS node__field_date_field_date_value, node_field_data.nid AS nid, node_field_data.langcode AS node_field_data_langcode FROM {node_field_data} node_field_data INNER JOIN {node__field_news_typ} node__field_news_typ ON node_field_data.nid = node__field_news_typ.entity_id AND (node__field_news_typ.deleted = '0' AND node__field_news_typ.langcode = node_field_data.langcode) LEFT JOIN {node__field_date} node__field_date ON node_field_data.nid = node__field_date.entity_id AND (node__field_date.deleted = '0' AND node__field_date.langcode = node_field_data.langcode) WHERE (( (node__field_news_typ.field_news_typ_value = 'press') )AND(( (node_field_data.langcode IN  ('en')) AND (node_field_data.status = '1') AND (node_field_data.type IN  ('news')) ))) ORDER BY node__field_date_field_date_value DESC LIMIT 10 OFFSET 0   You may see that the inner join expects the langcode field in node__field_news_typ to be the same value as node_field_data.langcode which is 'en' when I enter the view in English. But looking into the table of node__field_news_typ I do not find one entry with 'en' as the field is not set to be translatable and all the nodes are originally written in German.  Maybe I did not get some basics of the multilanguage architecture in Drupal 8 but I find it a little bit strange that fields which are not translatable filter out nodes in views where a filter is set to "current active language". Is there not UNDEFINED_LANGUAGE ('und') anymore? Why do fields get a fix languagecode when they are not translatable? How can I avoid this behavior?   It seems to me that there is no other way as setting the field to translatable although I want to assure that translated nodes have the same value?!
2456
I'm running SharePoint 2013, I would like to have a Current User Filtered View using Javascript.   the [Me] would not be feasible because I'm not using the "People Picker" as the field type. I used a text field in 4 different text fields. For instance, Field1_Text, Field2_Text, Field3_Text and Field4_Text can different Users. The form will have four different approval process; however, I would like to display the form whenever one of those text field has the current user listed. The Current User Filter Web Part, only allows for one field to be selected not all four fields, so that approach won't work either.   A custom view will be used for the date of the item. For instance, "Created Date" Filter = [Today] + 15. The data would only be displayed if the current user is listed on one of those approval "Text_Field" as noted above and the form was created 15 days from [Today]. But, my main concern is the Javascript aspect. I'm trying to get myself up to speed on the topic. Let me know if there is anything else that I can provide. As far as the .JS code, I'm very limited since I'm trying to read and learn from many of the posting on this site.  Thank you.
32320
how to prevent user creating a duplicate node title for a content type?  I already try uniqueness module () but it's only list out the duplicate content title but not return any error message when user save the new content. Any suggestion module or code? :)