Questions tagged [required]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

Is there any attribute in aura components to bypass validations like 'immediate = true' in visualforce page or 'causesvalidation = true' in asp

I have a record creation form with lightning:recordEditForm tag. I used required = true to some of the inputField values. I have a cancel button at the bottom of the page. When I click 'cancel' button ...
  • 25
-1 votes
1 answer
35 views

Validation rule issus

I want to check this condition : If the field status ( Picklist) is "ended" , then , verify If the field description is empty , if is empty , the validation rule should work and the error ...
-2 votes
1 answer
139 views

Unable toRequired and disabled field

I have a problem with my code , the required and disabled are not working for me . I want that the " More informations" dependent on the status . If the status is "Pending" or &...
-2 votes
1 answer
610 views

make a field required for a specific profile

I want to make the field deadline required if the user profile is Profile Bs , it not should be empty . (The deadline is a Date ) , but with this code is not working for me , I tried before the ...
0 votes
1 answer
105 views

How to check missing fields value that are required on submit

How to find all the required fields and display their lightning-tab[label] to the screen if the field is empty? The user should see which tab to go to if a required field is not filled. HTML <...
0 votes
1 answer
284 views

Unable to set required attribute for lightning input

I'm currently looking to change the required attribute based on multiple scenarios. So, I have a created input field with the required attribute as newAccRequire but by default, it's getting the true ...
  • 1,448
0 votes
1 answer
65 views

Making Custom Field Required

I am trying to make a field required. I used an "ifblank" validation rule which returned an error if blank, this worked. However, this does not allow another field to be entered as the other ...
0 votes
1 answer
7k views

Multiple OR statements in Validation Rule

Im trying to figure out a Validation Rule IF Picklist Value is "Yes", then 4 fields must be filled out AND at least 1 of 2 Solution Partner fields must be Filled out. I can figure out how to ...
  • 39
1 vote
1 answer
213 views

Why isUpdateable() is not working for non required fields in RestResource class?

I want to update two fields in a custom object from a RestResource class. This is the code I used: @RestResource(urlMapping='/AllHistory/*') global class SampleClass{ @HttpPut global static ...
0 votes
1 answer
57 views

Call Controller Method without triggering required="true" validations

hoping for some guidance on how i can accomplish something in VF. Basically i have 2 SelectLists side by side where the left one contains a list of all SFDC users in my instance and the right one ...
  • 1
0 votes
1 answer
505 views

Required attribute not working lightning:input rerender

I am facing an issue with below code. Required attribute on lightning:input is not working on rerender. I have an inputCheckbox and I render the lightning:input field upon checkbox selection. This is ...
user avatar
0 votes
2 answers
199 views

Mandatory error message not displayed on field when only a single field in mandatory

I am using the following piece of code to display required error message var allValid = component.find('smaField').reduce(function (validSoFar, inputCmp) { inputCmp....
  • 1,175
0 votes
2 answers
499 views

How to make a non-custom field required

I see that I can make a custom field and have it be a required field, but I already have a standard Industry field, for example, and I don't see any option to make it required.
  • 1
0 votes
2 answers
3k views

How to validate checkbox as checked only on specific page layout and without record type?

I wonder how I can accomplish that checkbox field will be reuqired on specific page layout. As I know checkbox fields can't be simply marked as required on page layout level. Is it possible to ...
0 votes
2 answers
53 views

Figure out which fields are required from Setup

Is it possible to figure out which fields are required from Setup? I mean, I can of course go and look at each field settings and check the required checkbox, but very often I need to look at a few ...
0 votes
4 answers
4k views

How to find required fields for an sObject?

I know the question has already been posted, and answers where given ; I read this topic ; Of course I can try to insert the sObject and get the error listing the missing fields, But isn't it a '...
1 vote
1 answer
2k views

apex:inputText required="true" doesn't work as in the documentation

I want to make an inputText field's attribute required="true" on the VF page and display the error message : Error: You must enter a value (Note: I do not want to use an InputField here) When I ...
  • 2,015
0 votes
3 answers
376 views

Getting Required fields

I would like to get required fields for an object selected on a VF page , how can this be achieved. I have the describe call, but the object input will need to be dynamically fed from the VF page ...
0 votes
2 answers
2k views

Rerendering conditionally required fields in VF - how to make field 'unrequired' upon rerender?

My scenario: I have two fields, each of which is tied to third field's picklist values. Only one of those two fields should display, depending on the selected picklist value. Whichever of those two ...
  • 3,622
1 vote
2 answers
3k views

Required Mark next to Apex:inputText and showing required error message

There is requirement to put the required mark next to Apex:inputText. And also, required error message I want to show near to apex:InputText (bottom). Whie searching I found there are ways: a. ...
3 votes
1 answer
21 views

Managed package keeps marking object required even with no references

I keep seeing Product under Package Requirements even though there are zero references to it anywhere in my package. I have searched through all my files both in my local editor and Developer Console ...
  • 3,866
0 votes
1 answer
488 views

html5 validation on apex:inputsecret

html5 validation fires on all fields except apex:inputsecret field.Any reason behind this ? <apex:page id="Registration" showHeader="false" controller="SiteRegisterController" title="{!$Label....
  • 13.5k
0 votes
1 answer
366 views

Required fields are missing (Bulk API)

I'm trying to upsert a new Contact record using the Bulk API and it's returning the following error: [{"errors"=> [{"fields"=>["DDA_External_Id__c"], "message"=>["Required ...
  • 129
2 votes
2 answers
2k views

"Standard" Lightning Components - How is the Required attribute used?

Most of the Lightning Components in the Lightning Component reference have a "Required" attribute as one of the options. Example Component Given that this appears to have no impact on validations ...
  • 1,069
1 vote
1 answer
151 views

Woocommerce Salesforce Syntax Error

We are using a plugin to connect Salesforce and WooCommerce. When submitting a quote through WooCommerce, we are getting a Syntax JSON error. When debugging, we get the following as the culprit: ...
  • 11
5 votes
1 answer
187 views

Visibility of required custom field on standard object

I want to create a package which contains a custom field (text) on the campaign object. This custom field is required (I set it required in the schema builder) If someone is installing my package, ...
  • 472
2 votes
1 answer
1k views

apex inputCheckbox required=TRUE not working

I have an with required="TRUE". For some reason it isn't getting throwing error even if I save it without checking the box. Here's the VF Code. <apex:outputPanel styleClass="margin-t3" ...
  • 4,011
1 vote
4 answers
2k views

Best practice for JQuery to hide/show a section with required fields

I'm building a wizard where I've a page splitted in some sections. One of them is shown/hidden based on the value selected for a picklist of another section, by using JQuery. But, the conditional ...
user avatar