Change Data Form

Hello everyone, I’ve made a Data search and result, and I want another page where we can change data based on its title.

Hello Tyou,

Can you elaborate more on what exactly you are trying to do as it wasn’t very clear.

If you want to create a form to input data to a collection here is a link for that.

If you want a page with the same template/design but with different ‘data’ based on its values in the collection, Wix has an awesome feature called dynamic pages you can check out here .

Best,
Majd

I want to input data, but I also want it to replace the old data based on “Name” for example.

It looks like what you are looking for is the save and update functions.
Try these out, and if you run into any problems post the code here so that we can look at it.

Best of luck,
Majd

Can you create a code for me (I want to put it on a button) and give me an example please ?
Also, how can I change the member signup fields ?

Hello tyou,
Here is an example code (You will have to change ID’s and names accordingly)

 import wixData from 'wix-data';
  // ... 
  let toUpdate = { 
  "_id": "00001", 
  "title": "Mr.", 
  "first_name": "John", 
  "last_name": "Doe" 
  };  
  
  wixData.update("myCollection", toUpdate) 
  .then( (results) => { 
  let item = results; //see item below 
  } ) 
  .catch( (err) => { 
  let errorMsg = err; 
  } ); 

Member signup field has limited customization for now and you can find out how to do that - here
Best,
Majd

Can you make website with this feature, because I don’t really understand coding.