Copy Google form and linked sheet preserving existing formulas and formatting?

I am required to copy an existing Google Form, however, the linked results sheet has deep formatting and formula.

Apparently, the new form requires a new sheet to be linked to form results. How can I copy the form so that a duplicate of the existing sheet is used for form results without losing all formatting and logic?

Changing how Adding Existing Node (from another content type) works

I have a Drupal 8 site with two content types: Recipe and Ingredient, and I have Ingredient as an inline entity form of Recipe form.

So, when I am creating a new Recipe, I get this: enter image description here

My question is: can I change how Add Existing Node works to, instead of a button, it shows a select list with all the current posibilities?

Thank you in advance.

Changing how Adding Existing Node (from another content type) works

I have a Drupal 8 site with two content types: Recipe and Ingredient, and I have Ingredient as an inline entity form of Recipe form.

So, when I am creating a new Recipe, I get this: enter image description here

My question is: can I change how Add Existing Node works to, instead of a button, it shows a select list with all the current posibilities?

Thank you in advance.

Programmatically add field collection item (child) into a existing field collection item (parent)

I have a nested field collection item, field_collection_parent which contains one field_text and a field collection field_collection_child contains two text fields(field_a and field_b).

Now I’m trying to add more field_collection_child into an existing field_collection_parent (using its entity_id) but the new field_collection_child is not getting created.

Below are my codes:

$  entityId = 331  $  field_collection_1 = entity_load('field_collection_item', array($  remId));  $  field_collection_2 = entity_create('field_collection_item', array('field_name' => 'field_collection_child')); $  field_collection_2->setHostEntity('field_collection_parent', $  field_collection_1); $  field_collection_2->field_a['und'][0]['value'] = 'http://www.google.com'; $  field_collection_2->field_b['und'][0]['value'] = 'http://www.google.com'; $  field_collection_2->save(); 

Even I’ve tried https://www.drupal.org/node/2382811, but no luck.

Magento 2: How to pass an existing module in the vendor, to the application folder?

I want to pass a module from the vendor folder called “module-checkout” to the application folder. But every time I try to register this module to the application, I get an error that says that the module “already exists in the vendor folder”. How can I register this module in the application folder? Can anybody help me please?

Does surprise arrest existing movement?

Do surprised creatures which were already moving prior to being surprised keep moving, or stop moving for a round?

Some illustrative situations might be:

  • A carriage drawn by four horses is heading down a road at 60 feet/round. The carriage is ambushed by previously unseen goblins, and the driver and horses are Surprised. Does the carriage stay exactly where it is on the round they are all surprised, or does it continue 60 feet in the direction it was going?
  • PCs cast Gate on a dragon rider mid-flight. The rider is drawn through the portal. Their dragon is Surprised. On the round it’s surprised, does it hover at the position in the air the Gate is, or does it continue flying?

Adding AJAX to an existing form element?

I am trying to Ajaxify a node form element (field_unterbringung). When the user changes the value of an entity reference field (unterbringung) the markup should change from “old markup” to “new markup”. But nothing happens. The ajax callback is not even called and drupal_set_message of “ajax callback is not showing up” is not showing up.

function customisations_form_alter(&$  form, &$  form_state, $  form_id) {   if ($  form_id == "patientprofile_node_form") {       $  form['field_unterbringung']['und'][0]['value']['#prefix'] = '<div id="markup_wrapper">';       $  form['field_unterbringung']['und'][0]['value']['#suffix'] = '</div">';       $  form['field_unterbringung']['und'][0]['value']['#ajax']['callback'] = 'ajax_callback';       $  form['field_unterbringung']['und'][0]['value']['#ajax']['wrapper'] = 'markup_wrapper';       $  form['field_unterbringung']['und'][0]['value']['#ajax']['event'] = 'change';       $  form['field_unterbringung']['und'][0]['value']['#markup'] = "old markup";       drupal_set_message('<pre>'. print_r($  form['field_unterbringung'],TRUE) .'</pre>');       } } 

corrected callback:

function ajax_callback($  form, &$  form_state) {   drupal_set_message("ajax callback firing", 'status');   watchdog('customisations', 'ajax callback firing');   return $  form['field_unterbringung']['und'][0]['value']; }