## INFOPATH 2013 – SHOW / HIDE FIELDS AFTER THE CALENDAR MONTH

I'm looking for some help with this.

I have a form for an employee award. The vote will take place within the calendar month. I need a conditional rule that shifts between my sections – these sections are adjusted to the month.

Any help appreciated.

## Hidden fields of the SharePoint 2013 REST API filter

I have a small problem. I try to do the following. In SharePoint list items, there is a field called hasUniqueRoleAssignments, which is hidden on a standard REST call. If I put it in the selection string of the remainder call, I'll get it. So far, so good.
What I obviously can not do is use it in the filter statement. So the URL

``````... / sites / site / _api / web / lists / getbytitle (& # 39; listname & # 39;) / items? \$ filter = (Some_Standard_Field% 20eq% 20% 27139% 27) & \$ select = ID, HasUniqueRoleAssignments, Author / Title, Editor / Title, Created, Some_Standard_FieldId & \$ expand = Author, Publisher & \$ top = 1000
``````

will work fine. But if I try

``````... / sites / site / _api / web / lists / getbytitle (& # 39; listname & # 39;) / items? \$ filter = (HasUniqueRoleAssignments% 20eq% 20% 27false% 27) & \$ select = Id, HasUniqueRoleAssignments & \$ top = 1000
``````

The request fails with the error message that the column HasUniqueRoleAssignments is not available.

Does anyone have any idea how to use the filter to get items

``````HasUniqueRoleAssignments = false or true?
``````

Would be grateful for help

## Node – Taxonomy type custom fields are displayed individually

I'm a freshman, so I hope someone can point me in the right direction.

I added a custom field field_url to a taxonomy type called field_type_poi, How would you describe the individual field of this taxonomy type? node.html.twig?
I know that I can use {{}} Content.field_type_poi to represent the entire content of the taxonomy type, but I am looking for a way to render a field specifically.

## Forms – two-factor fields, e-mail code + authentication code. One page or two pages for input?

I have a user action that requires both a 2fa mobile authentication code and copy and paste from an email (a code). I'm trying to find out if it would be best to have a single dialog view with input fields for both and a submit button. Or you have two separate dialog views, the first one representing the e-mail code dialog and the second the authentication dialog.

• The user can see in advance all requirements for authentication
• Makes it clear if there is a validation error, which field it belongs to (does not change in either or indicates where you need to know if you're in Authentication View or Email Code View)

• If the user enters the mobile code before the e-mail code, there is a good chance that the 2fa code will expire when it submits the form.

## html – How to Correct the Population of Text Fields Relative to a Container (Position: Relative; Does Not Work)

I need to position the username and password forms relative to the container.
I tried this by automatically positioning the container relatively. I tried to find several solutions to this problem. For example, editing the border did not apply to the problem. [Photo of website with current fix]https://i.stack.imgur.com/5mHiN.png

``````

.Container {
Margin: car;
Width: 450px;
Height: 400px;
Background color: #FFFFFF;
}

``````
``````
``````

entrance[type=text] {
Height: 30px;
Position: relative;
left: 0;
Outline: none;
Frame: 1px stuck #cdcdcd;
Border color: rgba (0, 0, 0, 0.15);
Background color: white;
Font size: 16px;
}

Height: 30px;
Position: relative;
left: 0;
Outline: none;
Frame: 1px stuck #cdcdcd;
Border color: rgba (0, 0, 0, 0.15);
Background color: white;
Font size: 16px;
}

button[type=submit] {
}

`` `
``````

## Design Pattern – Do you want to use input fields as information only?

I have a license that is being transferred from the user "James" to someone in my database (this is a corporate application):

When I click on the name (it gets assigned), a pop-up window opens and the edit mode changes

The From field is just "View" because it is pulled by the person who owns the license.

Is this correct for the coding in html and the bootstrap with the input field?

## JS condition for contact form 7 (when all required fields are highlighted …)

I need to know if there's a conditional JS for Contat Form 7 that says …

If all required fields are marked … then my function … is that possible?

## Create a form with exclusion fields to search for flights (iOS app)

I am currently facing a UX situation that I do not know how to solve.

I have a place in my app where I can search for flights that either enter the airports airline, departure and destination or the flight number.

One idea was to OR the airline, departure and destination fields from the flight number. I do not like this too much, as it can be confusing if someone filled more than one box.

Another could be a picker who selects the type of search (Dep / Dest airports or flight number).

What are your thoughts? Which other ideas could be better?

## Abstract algebra – Which fields between the rational and the real allow a good idea of ​​2D distance?

Consider a field $$K$$, we say $$K subseteq mathbb R$$, We can look at the "plane" $$K times K$$, I wonder in which cases the distance function works $$d: K times K to mathbb R$$, defined as normal by $$d (x, y) = sqrt {x ^ 2 + y ^ 2}$$takes values ​​in $$K$$,

Certainly this is not true $$mathbb Q$$: we have $$d (1, 1) = sqrt {2} notin mathbb Q$$, If we take some $$K$$ which is closed under square roots, then certainly $$d$$ will accept values $$K$$,

It may still be true a priori $$a in K$$ has no square root, but this is not an obstacle, as there is no spelling $$a = x ^ 2 + y ^ 2$$, So I am surprised:

Are there fields? $$K subseteq mathbb R$$ which do not have all square roots, but are still closed $$d$$?

## 8 – Unlimited Custom Form Fields – Without Ajax

I have a simple form where users can set the number of fields they need. I do not need anything special as this is a "set it and forget it" form, so I'm not worried about ajax "add more" options.

Everything works fine with the following code (although you have to save the form twice, once to add the fields, twice to save the data), but I get an undefined offset notification `Note: Undefined offset: n` I can always increase the number of fields and save the form.

I am not sure how to better answer this question …

1) I know that the following code is not a perfect UX (a form must be saved twice). Does Drupal offer API benefits to my approach that I do not know?

2) Is there a way to deal with this message or to suppress it because I am not sure which part of the `to the` Loop does the error really come? (The indexes have to be empty sometime and are currently my main concern because the news is ugly !!!)

``````public function buildForm (Array \$ form, FormStateInterface \$ form_state) {

\$ config = \$ this-> config (& # 39; MYMODULE.settings & # 39;);

\$ form['#tree'] = TRUE;

\$ form['fieldset'] = [
'#type' => 'fieldset',
];

\$ form['fieldset']['field_number']    = [
'#type' => 'textfield',
'#default_value' => \$config->get('field_number') ?: 1,
];

for (\$ i = 0; \$ i < \$config->get (& # 39; field number & # 39;); \$ i ++) {

\$ form['fieldset']['field'][\$i]    =[
& # 39; # type & # 39; => & # 39; text box & # 39 ;,
& # 39; # default_value & # 39; => \$ config-> get (& # 39; field & # 39;)[\$i] ?: & # 39 ;,
];

}

return parent :: buildForm (\$ form, \$ form_state);
}

public function submitForm (Array & \$ form, FormStateInterface \$ form_state) {
\$ values ​​= \$ form_state-> getValues ​​();

\$ this-> configFactory-> getEditable (& # 39; MYMODULE.settings & # 39;)
-> set (& # 39; field number & # 39;, \$ values['fieldset']['field_number'])
-> set (& # 39; field & # 39 ;, \$ values['fieldset']['field'])
-> save ();

parent :: submitForm (\$ form, \$ form_state);

}
``````