Questions tagged [form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
5answers
27k views

(Lightning) How do I get the selected value from a Select dropdown list & send it to a method?

I'm trying to implement a single option select dropdown list for my component, and I've gotten as far as displaying the data members and the correct values for them. However, I can't find any example ...
4
votes
1answer
2k views

How can I create an UnsubEvent using AmpScript in a Landing Page

In Salesforce Marketing Cloud (SFMC), I want to unsubscribe a contact from a single publication list by using a form on a landing page. I also want to create an Unsub event in SFMC when they submit ...
4
votes
1answer
1k views

Handle Multiple <apex:form> elements in one Visualforce page

I have a visualforce page with an apex:component in it. (This component is for headers, used in various other places). <apex:page title="" ... > <apex:form> <c: HeaderV2 /> &...
4
votes
1answer
2k views

Lightning clearing data form after submitting

I have a function to create new form requests: clickCreateTrainingReq: function(component, event, helper) { var validTrainingReq = true; //preparing all data var nameField = ...
4
votes
1answer
908 views

reCAPTCHA on Visualforce pgage

I've been looking for a way to implement reCAPTCHA or any type of CAPTCHA on a Visualforce form. It appears that reCAPTCHA has been updated since this posted Adding CAPTCHA to Force.com sites. Can ...
3
votes
2answers
1k views

How to add lightning:input to lightning:recordEditForm

I'm building out a question answer component where certain answers will have specific input types and it would be nice to set some key parameters of the input field yet still use the lightning:...
3
votes
2answers
3k views

html button inside Visualforce page generate a refresh on the page without any action connected to it

Situation I have a simlpe visualforce page, where inside a pageblocksection i have put a html Button. <apex:page controller="myTestPage" > <apex:form rendered="{!AND(NOT(isError))}" &...
3
votes
1answer
3k views

Using AMPScript to Pre-Populate a Smart Capture Forms in Salesforce Marketing Cloud

I'm trying to send an email to Data Extension A that will link users to a Marketing Cloud Landing Page with a Smart Capture form. The Smart Capture form is updating Data Extension B. The form that ...
3
votes
1answer
157 views

What are the options for building custom Apex endpoint to accept HTML form from website

I know there are a lot of potential solutions for the HTML-form-to-salesforce use case, but I am trying to understand what is involved w/ building a custom endpoint to accept form data, and what ...
3
votes
2answers
356 views

How to remove prefix of apex:form from elements?

I amworking on a Visualforce Project where I need to access elements from a form via jQuery. The problem is that the elements always get a prefix like j_id0:j_id4: in the ID. Therefore I can't access ...
3
votes
2answers
258 views

External SalesForce Forms

Is it possible to create external SalesForce Forms that can populate fields in the same way as inside salesforce? We offer online teaching and the idea is that teachers, after every lesson, can fill ...
3
votes
1answer
96 views

In a form I have two fields. One OR the other is required. Can I do this with VF/Apex?

I know I could completed this on the front end or with some JS, but I am already using the required attribute on the apex:inputField for all the other fields, so it would be nice if I could make this ...
3
votes
0answers
2k views

Lightning Components: Using <force:inputField /> on a Lookup only works partly and use slds-input class override with default

Using a <force:inputField value="{!v.account.ParentId}" /> seems to have flaws running in a Lightning Community Issues Rendering: wrong/missing styles Link "Find more results" does not work ...
2
votes
1answer
562 views

Adding Auto-Save Functionality to a Visualforce Page

I'm working on a visualforce page that will act as a questionnaire. However, given that some of the questions that will be asked may take time to answer, I'd like to know if there is a way to have ...
2
votes
1answer
50 views

How to get <apex:form> to have two INDEPENDENT columns with fields?

I am looking for a way where I can use to have two individual, independent columns for fields of a custom object. I am aware has a column attribute, but there is no control over field placement. I ...
2
votes
1answer
1k views

Autonumber in Marketing Cloud?

I am currently building a smartcapture form. It is capturing new contacts to be stored in a data extension in marketing cloud. It takes their name, email address etc. I also want it to assign them a ...
2
votes
1answer
2k views

LiveAgent - preChat: “The chat window may only be launched from a button — you cannot access it directly.”

I have a problem and apparently it has no solution on internet. I'm trying to implement the pre-chat on the LiveAgent following the guide, but adapting that to my own problem. This is my button: &...
2
votes
1answer
98 views

Is there a way to have a lookup / free text field in Salesforce?

We would like our Staff (interal salesforce users) to be able to populate a field based upon a lookup of data in a custom object when submitting a Case. In contrast we also have an online form for ...
2
votes
1answer
2k views

Default Lead Source (or any standard hidden field) on Web-to-Lead form

I have created a web to lead form in salesforce but I cannot seem to default standard fields such as Lead Source = 'Web'. This should be hidden from the user creating the form. I am using the below ...
2
votes
1answer
62 views

Unique Picklist Values

I have a visualforce page that allows customers to schedule an appointment with me. The fields I have are subject, description, date, and time. Since I'm only available at certain time blocks ...
2
votes
2answers
2k views

How to insert list records from one object plus form inputtext box data to a different object?

I have a VF page that List account records that meet certain criteria. The user would select which accounts as well as fill out a couple notes fields (that do not exist in the Account object). Once ...
2
votes
1answer
34 views

Is it possible to have record type pop up before account creation on a visualforce page?

The wording of the question may be a little weird, but I am designing a search system that will search additional databases to add companies from there to Salesforce. If the company is not found in ...
2
votes
1answer
513 views

ActionSupport not calling my function in controller

What I'm trying to do is rerender my form once a row in the table is clicked. Initially, I have just put a system debug line in the function in the controller and I have not been able to see it in the ...
2
votes
0answers
52 views

Pardot engagement studio is sending emails with a delay

I set up engagement studio for our newsletter opt in. After submitting a form, the user is added to a list which is the starting point of the engagement studio. Then the user is supposed to receive an ...
2
votes
1answer
43 views

Visualforce form - retrieve post parameter in confirmation page [closed]

I'm currently tring to make visualforce form. The flow is the following input page confirm page complete page how can I retrive POST parameter in confirm-page? I want retrieve each parameters at ...
2
votes
2answers
121 views

Winter18 override sizes on compound forms

With Winter18, elements sizes in compound forms are overridden to something like slds-size--1-of-1, despite the slds-size specified. For example, this code from the SLDS Documentation used to work, ...
2
votes
1answer
2k views

Form validation isn't working when submitting it using Javascript

I have a basic webform that calls a Javascript method after clicking on the submit button. The method applies some logic and when it's done, the form is submitted. It seems that I can't force the ...
2
votes
1answer
593 views

how to send pdf file from apex form

i am trying post pdf file from visual page to my controller using apex:form and send it third party using rest api, but on controller end i am not getting my pdf file.its field is null, visual page &...
2
votes
0answers
59 views

Looking if Tomcat Server is running before sending a form through Javascript [closed]

I am sending a hidden iframe form through Javascript form submit. The URL endpoint I send to is local Tomcat server(something like http://localhost:8090/start). The form works great if Tomcat is up ...
2
votes
1answer
310 views

Is there an easy way to repopulate a VisualForce page form when it is returned with an error?

I have a VisualForce page which, under "normal" circumstances, upon submission, via the custom controller extension, inserts a record. But sometimes, as it should, it does not insert the record, but ...
1
vote
1answer
427 views

Pre-populating checkbox fields in a CloudPage in Marketing Cloud

I'm currently building a preferences update form (not the main default Marketing Cloud preferences centre, but a specific form for a small audience segment) I'm pre-populating the form from a ...
1
vote
1answer
272 views

Error Handling in apex class method.

I have an apex method that requires three fields, an account number, user input and custom setting number. based on that it will generate a sequence of number e.g if the acccount no is 8181818 (...
1
vote
2answers
113 views

Building a Salesforce Form using Sites that is Time-bombed

Project Build a form off salesforce that can be sent to clients to collect information. Sent by email through salesforce as a button available to sales users off the account record Requirements ...
1
vote
1answer
2k views

Datepicker on Salesforce Visualforce pages,

Hello I'm currently doing a form on salesforce that will allow a customer to pick a deadline for the project that they ordered, And i want a datepicker for the apex:inputfield. I can do a datepicker ...
1
vote
1answer
160 views

Custom Form information into a data extension [closed]

Is it possible to have a custom form write the results into a data extension? The form will have a Name field, an Event Type (dropdown), and a Promotion Type (Checkbox). I have a data extension setup ...
1
vote
2answers
391 views

Lightning Component form field - hidden

I would like to hide a form field in a Lightning component. I am trying to do something like the following but the visibility attribute isn't being recognized. lightning:select aura:id="leadtier"...
1
vote
2answers
446 views

smart capture vs web collect

We would like to have a web form on our website and let ppl subscribe for our blog. We would like to send a thank you email later on and track those who signed up for the newsletter for a future ...
1
vote
1answer
475 views

how to change the CSS for a pardot form?

I've created a form in Pardot and the style is perfect right now , I just need to change the style for 2 of the elements in this registration form. it's a calendar field that I need to change the CSS ...
1
vote
1answer
134 views

How do I send a Pardot Prospect an email every time a specific Prospect field changes?

Say we have a Pardot Prospect field 'Interests' and someone would update that field, either they themselves using a form or we do it through the Pardot UI (if we're on the phone with them). Then how ...
1
vote
2answers
69 views

Send public forms to your Contacts

Is there a way to send a 'form' to your Contacts (not registered as Users), get their reply and update their respective contact record based on the replies. Has anyone done this before? Till now I ...
1
vote
1answer
982 views

Visualforce form, hide or show checkbox depending on the picklist

I created a form and I want to show the checkbox option depending on the value in the picklist. Let's say if the user chooses "Apples" in the picklist, the checkbox shows, if he choooses "Oranges" the ...
1
vote
2answers
426 views

Include an Apex VisualForce Page in New Task Form

I must add 5 fields on the standard task form wich will modifiy the linked account fields when a specific task is saved. How can i do that ? Can we just include a VF page in the standard form and use ...
1
vote
1answer
105 views

SelectList disappears when the value is an object's picklist

I have a simple page with a form that is supposed to create a custom object. This custom object has several picklist fields. I can dynamically populate the selectLists, but when I give the selectList ...
1
vote
2answers
1k views

Post HTML form to Custom Object

I would like to post an HTML form, hosted outside of Salesforce, to a custom object. I figure it would be similar to a Web to Case, where you post to a certain URL with some specific hidden fields, ...
1
vote
2answers
386 views

Required field validation error message in VF Page using Javascript? (No Alert box or Popup's)

I want simple message 'Complete this field' (as shown in image below) to displayed under input boxes which are empty while submitting the form in VisualForce page. Can someone tell me how to ...
1
vote
1answer
557 views

How to build an html form without using apex:form on the page?

I have an html <form> I would like to use to trigger an apex function without using any <apex:form> on the page. Is that possible? If so how? Code sample: Page: <apex:page ...
1
vote
1answer
466 views

How to make a Pardot autoresponder email send after each download, not just the first

I'm fairly new to Pardot, and I'm trying to make an autoresponder email send after every time someone tries to download an image on my site. This is the basic flow: User fills out a quick form (name, ...
1
vote
1answer
513 views

Adding comma/line break to text from multi-select picklist?

I am working on a form (using Form Assembly connected to salesforce) that needs to display all the values from a multi-select picklist. I am using this code (plus quite a few more lines of ...
1
vote
1answer
1k views

Can I access the content-type form a blob/inputFile?

I'm writing a component to upload some files to AWS/S3. How can I detect the content-type of the upload form inputFile or from a Blob of the file in Apex? req.setHeader('Content-type', ...
1
vote
4answers
109 views

Visualforce form entry behaviour

I am building an Add Account page, and have 3 questions about form entry: When entering a new account, how do you refresh the input form fields, so that another value can be entered? I have tried ...