Questions tagged [required]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
415 views

How can one require a record type filtered dependent picklist in Screen Flow?

I need to make a non-required dependent picklist filtered by record type, required on a Screen Flow page. Please correct me if I am wrong, but I believe what I want to do is currently impossible ...
Johan Emerén's user avatar
0 votes
0 answers
75 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 ...
Raham's user avatar
  • 33
-1 votes
1 answer
36 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 ...
salesforcedev's user avatar
-2 votes
1 answer
222 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 &...
salesforcedev's user avatar
-2 votes
1 answer
999 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 ...
salesforcedev's user avatar
0 votes
1 answer
237 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 <...
ApexCowboy's user avatar
0 votes
1 answer
394 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 ...
Pavan tej's user avatar
  • 1,439
0 votes
1 answer
105 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 ...
Mack Brooks's user avatar
0 votes
1 answer
10k 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 ...
kikalz's user avatar
  • 39
1 vote
1 answer
264 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 ...
Jayesh Babu's user avatar
0 votes
1 answer
69 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 ...
Shane's user avatar
  • 1
0 votes
1 answer
532 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
243 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....
Madhurima's user avatar
  • 1,265
0 votes
2 answers
574 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.
Jack's user avatar
  • 1
0 votes
2 answers
4k 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 ...
Grzegorz Połuch's user avatar
0 votes
2 answers
94 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 ...
hellohowdoyoudo's user avatar
1 vote
4 answers
5k 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 '...
Alexis MASSON's user avatar
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 ...
Hasantha's user avatar
  • 2,045
0 votes
3 answers
396 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 ...
John_Smith's user avatar
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 ...
smohyee's user avatar
  • 3,752
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. ...
user1800933's user avatar
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 ...
Mossi's user avatar
  • 3,906
0 votes
1 answer
509 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....
sfdc's user avatar
  • 13.6k
0 votes
1 answer
393 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 ...
htatche's user avatar
  • 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 ...
Bigears's user avatar
  • 1,091
1 vote
1 answer
156 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: ...
Kelly's user avatar
  • 11
5 votes
1 answer
206 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, ...
noBillSide's user avatar
2 votes
1 answer
2k 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" ...
sfdcFanBoy's user avatar
  • 4,055
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