0% found this document useful (0 votes)
10 views2 pages

Code

The document provides social media links for a user, including Telegram, Instagram, Twitter, and Facebook. It also contains a JavaScript code snippet for submitting a form to a Google Sheets script, which processes the form data and logs it into a spreadsheet. Additionally, there are functions for initializing the setup and handling POST requests to store data in the specified sheet.

Uploaded by

aaryangamingzx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Code

The document provides social media links for a user, including Telegram, Instagram, Twitter, and Facebook. It also contains a JavaScript code snippet for submitting a form to a Google Sheets script, which processes the form data and logs it into a spreadsheet. Additionally, there are functions for initializing the setup and handling POST requests to store data in the specified sheet.

Uploaded by

aaryangamingzx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Social Media Links

Telegram = [Link]
Insta = [Link]
Twitter = [Link]
Facebook page = [Link]

<script>
const scriptURL =
'[Link]
O6xC7T0I/exec'
const form = [Link]['google-sheet']

[Link]('submit', e => {
[Link]()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => alert("Thanks for Contacting us..! We Will
Contact You Soon..."))
.catch(error => [Link]('Error!', [Link]))
})
</script>

=============================================================================

var sheetName = 'Sheet1'


var scriptProp = [Link]()

function intialSetup () {
var activeSpreadsheet = [Link]()
[Link]('key', [Link]())
}

function doPost (e) {


var lock = [Link]()
[Link](10000)

try {
var doc = [Link]([Link]('key'))
var sheet = [Link](sheetName)

var headers = [Link](1, 1, 1,


[Link]()).getValues()[0]
var nextRow = [Link]() + 1

var newRow = [Link](function(header) {


return header === 'timestamp' ? new Date() :
[Link][header]
})

[Link](nextRow, 1, 1, [Link]).setValues([newRow])

return ContentService
.createTextOutput([Link]({ 'result': 'success', 'row':
nextRow }))
.setMimeType([Link])
}
catch (e) {
return ContentService
.createTextOutput([Link]({ 'result': 'error', 'error':
e }))
.setMimeType([Link])
}

finally {
[Link]()
}
}

You might also like