0

I have a calendar view and I have some textbox with user values. When I click on the +AddItem value I want to use this data in the main form to validate some text fields. I need to read the

<input type="text" name="MyPersonalValue">

that is on the calendar.aspx page from the NewCalendarItem.aspx page via javascript.

It's possible? Thanks

1

You left this really open. Yes, it is possible.

Your language makes it look like you are a web dev, but perhaps not a sharepoint dev. So the things I found the most helpful when I was in that position:

  1. you can upload .js files to a document library and run them with script tags.
  2. Web parts like content editor allow you to edit html directly (though it gets reformatted every time you close and not everything is valid) embedding script tags is trivial once you have that mastered
  3. In the list/library tab in the ribbon The Customize list section has a Form Web Parts drop down where you could add a web part to the New, read, and edit forms
  4. js can make all sorts of interesting web service calls to SP through SOAP or REST.
  5. SP uses lots and lots of js, so it is worth having a look at your page to see what all is already loaded, you probably already have everything you need. (jquery is super common, so if you need it $ may already be customized)

Give all of this, I would probably add a content editor web part to the default new form with javascript that either regenerates the data you want or fetches the data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.