/** * BeeConnect Business Registration Form * Creates a new Google Form and a linked Google Sheets response spreadsheet. */ function createBeeConnectForm() { const form = FormApp.create('BeeConnect – Business Registration'); form.setDescription( 'Find Work. Share Opportunities. Grow Together.\n\n' + 'Welcome to BeeConnect!\n\n' + 'BeeConnect helps businesses connect, share opportunities, find available resources, ' + 'and build partnerships. Whether you are a restaurant looking for available drivers ' + 'or cooks, a business needing temporary help, or a company looking for new opportunities, ' + 'register your interest here.\n\n' + 'This is an early-stage registration of interest. Submitting this form does not guarantee ' + 'that workers, jobs, or business matches are currently available.' ); form.setConfirmationMessage( 'Thank you for registering your interest in BeeConnect! We appreciate your support as we build a better way for businesses to connect.' ); form.setCollectEmail(false); form.setLimitOneResponsePerUser(false); // Google Forms controls organization/sign-in restrictions in its Settings UI. // This script deliberately does not call the unsupported setRequireLogin() method. form.setShowLinkToRespondAgain(false); form.setProgressBar(true); form.addTextItem().setTitle('Business Name').setRequired(true); form.addTextItem().setTitle('Your Name').setRequired(true); form.addTextItem().setTitle('Business Email Address').setRequired(true); form.addTextItem().setTitle('Phone Number (optional)').setRequired(false); form.addTextItem().setTitle('City and Province').setRequired(true); form.addTextItem().setTitle('What industry is your business in?').setRequired(true); form.addCheckboxItem() .setTitle('What are you looking for?') .setChoiceValues([ 'Finding new work or customers', 'Finding available workers (for example, drivers or cooks)', 'Finding another business to help cover a job or shift', 'Sharing available resources or capacity', 'Finding business partners', 'All of the above' ]) .setRequired(true); form.addParagraphTextItem() .setTitle('Tell us briefly about your business and what you need.') .setHelpText('For example: We are a restaurant looking for drivers or cooks when needed.') .setRequired(true); form.addMultipleChoiceItem() .setTitle('Would you be interested in testing BeeConnect as an early member?') .setChoiceValues(['Yes', 'Maybe', 'No']) .setRequired(true); const spreadsheet = SpreadsheetApp.create('BeeConnect – Registration Responses'); form.setDestination(FormApp.DestinationType.SPREADSHEET, spreadsheet.getId()); Logger.log('FORM EDIT LINK: ' + form.getEditUrl()); Logger.log('PUBLIC REGISTRATION LINK: ' + form.getPublishedUrl()); Logger.log('RESPONSE SPREADSHEET: ' + spreadsheet.getUrl()); }