Using a Web Form to Create a Sharepoint Page

My Sharepoint site is made up of many Page. Each page is essentially a demo page example: Picking Food off conveyor, Stacking into a Box. I want many people in my organization to be able to contribute to this Sharepoint site. They would contribute by each making their own page on a use-case they have done. Explaining the exact workflow to maintain a standard style of Sharepoint Page creates permission liabilities and some obvious chances to not follow the rules.

The best solution would be a web form that asks for certain information (Page name, Page description, as well as some drop down options, and some attachments) when that webform is submitted Sharepoint would create a new page that follows a certain Page design and enters all the information that has been submitted.

I have sharepoint designer but have been unable to automate the transforming a webform into a page.

Any suggestions or directions I should look into would help.

How to form json with nested properties via FormData() for javascript ajax request?

I need to send some data using ajax, first I get these with my form then to form me need json for ajax request. Me need this json object for request:

          {             "productId": 0,             "number": "30-E-5",             "amount": 6.09,             "primeCost": 11.4,             "manufacturer": 'HonBar',             "productTypeId": 1,             "parameters": [                 {                     "parameterId": 2,                     "value": "XXX"                 },                 {                     "parameterId": 3,                     "value": "CK45"                 },                 {                     "parameterId": 4,                     "value": "30"                 }             ]           }  

I take the data from the form, then add the missing properties for json, via method form.append(). As a result missing properties not add in “form”. My html form and post request:

document.getElementById('dataForm').addEventListener('submit', function (ev) {     let form = new FormData(document.getElementById('dataForm'));     form.append("productId", 0);     form.append("parameters"[0]['parameterId'], 2);     form.append("parameters"[1]['parameterId'], 3);     form.append("parameters"[2]['parameterId'], 4);          console.log(json);       fetch( "api/Products/AddProducts", {             method: 'POST',           headers: {               Accept: 'application/json',               'Content-Type': 'application/json',           },           body: JSON.stringify(form)           })           .then(res => res.json())           .then(response => console.log('Success:', JSON.stringify(response)))             .catch((error) => {                 console.error(error);             });          ev.preventDefault();     });
<!DOCTYPE html> <html> <head> 	<title></title> 	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> </head>  <body> <div class="container-fluid represent-product">         <div class="row">             <form id="dataForm" method="post">                 <div class="row p-2">                     <div class="col-2 form-group">                         <label>Name type</label>                         <select name="productTypeId" class="form-control" id="TypeProduct">                             <option value="1">AAAA</option>                             <option value="2">BBBB</option>                         </select>                     </div>                     <div class="col">                         <label>number</label>                         <input name="number" class="form-control" value=""  />                     </div>                     <div class="col">                         <label>diameter</label>                         <input name="parameters[2].value" class="form-control" value=""  />                     </div>                      <div class="col">                         <label>manufacturer</label>                         <input name="manufacturer" class="form-control" value=""  />                     </div>                     <div class="col">                         <label>Type</label>                         <input name="parameters[0].value" class="form-control" />                     </div>                     <div class="col">                         <label>Grade steel</label>                         <input name="parameters[1].value" class="form-control" />                     </div>                     <div class="col">                         <label>primeCost</label>                         <input name="primeCost" class="form-control" />                     </div>                     <div class="col">                         <label>amount</label>                         <input name="amount" class="form-control" />                     </div>                     <div class="col justify-content-center btn-add">                         <button type="submit" class="btn btn-primary  button-add">Submit</button>                     </div>                 </div>             </form>         </div>     </div>    </body> </html>

As a result i receive error : “SyntaxError: Unexpected token < in JSON at position 0”

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?

Why did the Payment section stopped working after switching primary domain? And – does Form Key Validation On Checkout need to be enabled?

Porto theme 

I switched the primary domain in our Magento 1.9.4 store and then the Payment section of the checkout stopped working altogether – you could select a Payment method by placing a tick in the radio button but it would NOT proceed to the next step.

I found other posts dealing with problems regarding the payment section and they suggested to Disable the Form Key Validation. I did that and it made the Payment section work.

Why is this and do we need to have it enabled or are we going to get by with it disabled?

Secure a class for an hydratation from ma form POST

I use php classes for managing users accounts and I wonder if what I’m doing is correct.

I directly use the $ _POST[‘form’] for hydrate User objects. But there is some field that I don’t want user to modify (i.e. : Id_user, admin_level,… [They can be able to do it by creating a new input field called id_user or admin_level, and get admin level])

So i use an argument in each setID or setAdmin_level (a boolean called $ forcer) :

<?php Class User extends Content{ private $  _id_user; private $  _date_inscription; private $  _ip_inscription; private $  _derniere_connexion; private $  _nom_utilisateur; private $  _email; private $  _mot_de_passe; private $  _nom; private $  _prenom; private $  _role;  const USER_UNLOGGED = 0; const USER_LOGGED = 1; const USER_ADMIN = 5;  public function __construct(array $  donnees = null, $  forcer = false) {     if($  donnees){         $  this->hydrate($  donnees,$  forcer);     } }  public function hydrate(array $  donnees, $  forcer = false) {     foreach($  donnees as $  champ => $  valeur){         $  method = 'set'.ucfirst($  champ);         if(method_exists($  this,$  method))         {             if($  forcer){                 try {                     $  this->$  method($  this->securite($  valeur), true);                 }catch(Exception $  e){                     $  this->$  method($  this->securite($  valeur));                 }             }else {                 $  this->$  method($  this->securite($  valeur));             }         }     } }  public function setId_user($  id_user, $  forcer = false) {   if(is_numeric($  id_user)&&$  forcer)   {       $  this->_id_user = $  id_user;       return true;   }else {     $  this->addErreur('id_user','User ID incorrect');     return false;   }  }  public function getId_user() {     return $  this->_id_user; }  public function setDate_inscription($  date_inscription = "") {   if(is_numeric($  date_inscription))   {       $  this->_date_inscription = $  date_inscription;   }else {       $  this->_date_inscription = time();   }  }  public function getDate_inscription() {     return $  this->_date_inscription; }  public function setIp_inscription($  ip_inscription ='') {   if($  ip_inscription)   {       $  this->_ip_inscription = $  ip_inscription;   }else {       $  this->_ip_inscription = $  _SERVER['REMOTE_ADDR'];   } }  public function getIp_inscription() {     return $  this->_ip_inscription; }  public function setDerniere_connexion() {   $  this->_derniere_connexion = time()."#".$  _SERVER['REMOTE_ADDR']; }  public function getDerniere_connexion() {     return $  this->_derniere_connexion; }  public function setNom_utilisateur($  nom_utilisateur) {     $  this->_nom_utilisateur = $  nom_utilisateur; }  public function getNom_utilisateur() {     return $  this->_nom_utilisateur; }  public function setEmail($  email) {   if($  this->is_mail($  email))   {       $  this->_email = $  email;   }else {       $  this->addErreur('email','email incorrect.');       return false;   } }  public function getEmail() {     return $  this->_email; }  public function setMot_de_passe($  mot_de_passe, $  encrypted=false) {   if($  this->is_password($  mot_de_passe))   {     if($  encrypted)     {       $  this->_mot_de_passe = $  mot_de_passe;     }else {       $  this->_mot_de_passe = crypt($  mot_de_passe, $  GLOBALS['salt_crypt']);     }   }else{     $  this->addErreur('mot_de_passe','Mot de passe incorrect. Minimum 6 caractères.');     return false;   }  }  public function getMot_de_passe() {     return $  this->_mot_de_passe; }  public function setNom($  nom) {     $  this->_nom = $  nom; }  public function getNom() {     return $  this->_nom; }  public function setPrenom($  prenom) {     $  this->_prenom = $  prenom; }  public function getPrenom() {     return $  this->_prenom; }  public function setRole($  role, $  forcer = false) {   if(is_numeric($  role)&&$  forcer)   {       $  this->_role = intval($  role);   }else{     $  this->addErreur('role','Role incorrect');     return false;   }  }  public function getRole() {     return $  this->_role; } } // Fin de la classe User 

So, in order to register a new user, I hydrate a new User object with the form POST :

$  user = new User($  _POST['form'], false); 

And I need to set the $ force bool to true for create a new User from an Id or if I want to set a field protected.

$  user = $  userManager->getUserFromId(new User(['id_user' => 1], true)); 

Is this a good way ?

Multidimensional Correlated Geometric Brownian Motion, finding exact form of the matrices

My goal is to understand the dimensions of the matrices involved, so I am initially writing things as column vectors, and defining all the dimensions.

I am working with the following setup: Probability space $ (\Omega, \mathcal F, \mathbb Q)$ , equipped with a $ (d \times 1)$ -dimensional Correlated Brownian Motion, $ W$ , and the natural filtration of $ W$ is $ (\mathcal F)_s$ .

The martingale, $ X$ , (with respect to $ \mathcal F_t$ and $ \mathbb Q$ ) is $ (d \times 1)$ -dimensional and of the form: \begin{equation} dX_t^i = \sigma_t^i X_t^idW_t^i, \: i \in [1,d], \qquad d\langle W^i, W^j \rangle_t = \rho^{i,j}_tdt \end{equation}

I have been trying to find the correct matrix form for this equation, but whenever I have looked online, the equation seems to always be written in the above form for each $ i$ , rather than as the matrices themselves.

So far, I have defined the $ (d \times d)$ covariance matrix $ \Sigma$ , and another $ (d \times d)$ matrix $ A$ : \begin{equation} AA^T \equiv \Sigma, \qquad \Sigma_{i,j} = \rho^{i,j}\sigma^i\sigma^j \end{equation} and a $ (d \times 1)$ -dimensional standard Brownian Motion, $ B$ , and a $ (d \times 1)$ -dimensional vector $ L$ , so that : \begin{equation} \frac{dX_t^i}{X_t^i} \equiv L_i \end{equation}

So now, I have that: \begin{equation} L = AdB \end{equation} I am not sure if this is correct, but it seems to contain all the relevant information. The covariances between each $ \frac{dX_t^i}{X_t^i}$ is found through $ \Sigma$ as $ \rho^{i,j}\sigma^i\sigma^j = \text{Cov}(\frac{dX_t^i}{X_t^i}, \frac{dX_t^j}{X_t^j})$ , so I think it should be correct.

From there I tried to convert $ L$ to the $ (d \times 1)$ dimensional vector $ dX$ , by multiplying by the diagonal $ (d \times d)$ matrix $ D = \text{diag}(X_t^1,X_t^2,…)$ , which leads to:

\begin{equation} DL = dX = DAdB \end{equation}

I assumed this would work, and tried to check by using Ito’s Lemma on both $ dX_t^i = \sigma_t^i X_t^idW_t^i, \: i \in [1,d]$ , and on $ dX_t = DAdB_t$ , to check and the results seem to match.

I am using this form of Ito’s Lemma: \begin{align} df = \frac{\partial f}{\partial t}dt + \sum_i\frac{\partial f}{\partial x_i}dx_i + \frac{1}{2}\sum_{i,j}\frac{\partial^2 f}{\partial x_ix_j}[dx_i,dx_j] \end{align} I was just calculating the $ \frac{1}{2}\sum_{i,j}\frac{\partial^2 f}{\partial x_ix_j}[dx_i,dx_j]$ term, so using $ dX_t^i = \sigma_t^i X_t^idW_t^i, \: i \in [1,d]$ results in $ \frac{1}{2}\sum_{i,j}^d\frac{\partial^2 f}{\partial x_ix_j}\rho^{i,j}\sigma^i\sigma^jX^iX^jdt$ , as expected.

For the form $ dX_t = DAdB_t$ , I used that $ \frac{1}{2}\sum_{i,j}\frac{\partial^2 f}{\partial x_ix_j}[dx_i,dx_j] = \frac{1}{2}\sum_{i,j}(\beta\beta^T)_{i,j}\frac{\partial^2 f}{\partial x_i \partial x_j} dt$ , for any Ito process of the form $ dY_t = \beta dB_t$ .

This gives \begin{equation} \frac{1}{2}\sum_{i,j}(DA(DA)^T)_{i,j}\frac{\partial^2 f}{\partial x_i \partial x_j}dt = \frac{1}{2}\sum_{i,j}^d(D\Sigma D)_{i,j}\frac{\partial^2 f}{\partial x_i \partial x_j}dt = \quad \frac{1}{2}\sum_{i,j}^d(D_{i,i}\Sigma_{i,j} D_{j,j})\frac{\partial^2 f}{\partial x_i \partial x_j}dt = \frac{1}{2}\sum_{i,j}^d\frac{\partial^2 f}{\partial x_ix_j}\rho^{i,j}\sigma^i\sigma^jX^iX^jdt \end{equation}

I am wondering if this is correct, or if I did something incorrectly here. The dimensions seem to match everywhere. Is it possible to find a solution, like in this post: https://mathoverflow.net/questions/285251/solution-of-multivariate-geometric-brownian-motion. I can’t seem to get to that point using the form $ dX_t = DAdB_t$ .

Thanks a lot for the help!

Cant acess Cinnamon Desktop Form Ubuntu Mini net install

so installed the cinnamon desktop from a net install and didnt install any other desktops cause im trying to make this distro light as possible So it installed but when i go to reboot it doesnt show the GUI or cinnamon. Any suggestions. The only way I was able to get into it was installing the xfce desktop to giveme the option of choosing cinnamon. Cinnamon will not start up by its self.

Botón Submit no funciona en modal con form dinamico

Tengo un modal que levanta un formulario dentro de una pagina ASP y el problema es que el botón submit no realiza ninguna acción y solo cierra el modal.

Este es el ASP que levanta el modal.

Fecha de Carga Fecha Cronograma Fecha TMI “) else response.write(“”) end if %> “) else response.write(“”) end if %> Grabar”) else response.write(“Grabar”) end if %>

Si utilizo la pagina ASP directamente (y no contenida en el modal) funciona correctamente pero no lo hace cuando la uso dentro del modal.

Gracias