You need to sign in to do that
Don't have an account?
FinTech
Comparing Strings
I was wondering if anyone could give me guidance on the following.
I'm trying to compare two strings (two phone numbers). One from the document form and one from the Salesforce.com contact object. I'm just doing a document.getElementId("Phone").value != contact.get("Phone"...comparison...When I submit the system thinks the values are not the same when they are...How do you compare strings?
I'm trying to compare two strings (two phone numbers). One from the document form and one from the Salesforce.com contact object. I'm just doing a document.getElementId("Phone").value != contact.get("Phone"...comparison...When I submit the system thinks the values are not the same when they are...How do you compare strings?
Can you a bit of your code, please
Regards
var contact = queryresult.records[0];
var _contact = new Sforce.Dynabean("Contact");
...
if (document.getElementById("MobilePhone").value != contact.get("MobilePhone")) {
_contact.set("MobiilePhone", document.getElementById("MobilePhone").value);
_contact.set("MobilePhone_Updated__c", "true");
};
<Input name="MobilePhone" id="MobilePhone"</Input>
I think there is a typo in your _contact.set("Mobii...)
Otherwise I dot not see why for the moment
Regards