Picklist value Validation - salesforce

I am trying to create a validation off a pick list value if "In Person".
IF the picklist value= in-person and product type is Home Equity or Jr Home Equity add a box for provided disclosures yes or no
Any thoughts? Is this possible
Help creating a formula

I am assuming that your product field is a picklist and your disclosures field is a checkbox:
and( ispickval(Picklist_Field__c,'In-Person'),
or( ispickval(Product_Type__c, 'Home Equity'),
ispickval(Product_Type__c, 'Jr Home Equity')),
Provided_Disclosures=false )

Related

onChangeListener for lookup field is not getting Fired in Lightning Record Edit Form

I am trying to access the keywords typed in a lookup or master-detail field in lightning-record-edit-form using lightning-input-field and based on the value entered in that lookup I want to update picklist value to active or Inactive. Below is the code
<template>
<lightning-card>
<lightning-record-edit-form object-api-name="Opportunity_Bidder__c">
<lightning-input-field field-name="Opportunity_Name__c" onchange={onOpportunitySelected}>
</lightning-input-field>
<lightning-input-field field-name="Bid_c" onchange={onOpportunitySelected}>
</lightning-input-field>
<lightning-button type="submit" variant="brand" label="Create"></lightning-button>
</lightning-record-edit-form>
</lightning-card>
onOpportunitySelected(event){
alert('alert called');
this.opportunityName = event.target.value;
}
The issue is that onOpportunitySelected method is not called when user is typing in Opportunity_Name__c. However, its being called on other fields like textfield or any other field than lookup or master-detail field
I am new to salesforce, can anybody tell me that is it achievable using lightning-input-field for lookup or I need to customize lookup like here
To re-iterate "OnChange wont work on Lookup or Master-Detail fields in Lightning-record-edit-form ?"
Thanks in Advance

SSRS - modify PageName using pagebreaks/group by elements

I have an SSRS report that has one Tablix, it is grouped based on a field 'venue'
It has a checkbox for 'Page break options' Between each instance of the group.
So each venue has its own page of data however PageName is set to one value under properties.
Is there a way to automate each page/instance of the venue to be more dynamic.
Click the Row Group at the bottom to toggle the "Tablix Member" properties.
Then you can see the PageName in Group section.
On your case, PageName =Fields!venue.value
Pick Expression at the PageName,
=First(Fields!venue.Value, "dataset")

Dependent submit button in angular to fetch JSON file and display

I'm working on an AngularJS project, also pretty new to this and have managed to create a dependent drop-down menu.
Example:
Parent Drop-down- Cars
- Bikes
Child Drop-down- BMW, Audi
- Yamaha, Honda
So from the above example, if I choose Cars in the first drop-down it will display BMW and Audi in the second drop-down. Same for bikes.
Now if the user chooses BMW and clicks the submit button I want it to redirect to a URL which contains a JSON file and display the result in the form of a table.
If the user chooses Yamaha similarly it should redirect to another JSON URL and display the result in a table.
How can this be achieved in AngularJS, with a single "Submit" button?
Any help is much appreciated.
Regards.
Your vehicle dropdown should have unique ID such as cars for 1, bikes for 2 here 1 and 2 are unique ID for this category of vehicles.
Now on submit call a function which will take you to another page now, send this uniqueID of vehicles into statparams and on that page and on page OnInit make a http call and bind the models to that dropdown.

save muliple value on selection of checkbox in cakephp

I have two table First-taxonomy, second-product.
relationship between both table- taxonomy hasMany product and product belongs to taxonomy.
I have to save many taxonomy id in product table on selection of checkbox.
Only selected checkbox value should save in product table.
controller
add.ctp
For all checkbox give name as:
name="data['Product'][]['taxanomy_id']"
In your controller , within function add :
public function add() {
$this->Product->create();
if($this->Product->saveAll($this->request-data)){
// saved
}
}

What is the form parameter name to pass for a custom field of a group in Kademi?

I've added a custom field to a group in Kademi. Now I want to populate it from my signup page. How do I do that?
the parameter name should be same with custom field name. Such as you have custom field like gender. The form parameter name should be gender.

Resources