Hi Suraj,
Below code is not working. nameValidation was working fine.but after adding two functions in onclick , it's not validating now. Also amt validation is not working.send email button is not getting disabled even changed code as per your suggestion.
Company Name :
Amount :
Yes, you can call multiple JavaScript functions on a single onClick event in a Visualforce page. You can do this by separating the function names with a semicolon, just like in the example you provided in your previous question.
Explanation: NOT(ISNEW()) - This condition checks if the record being saved is an update and not a new record creation. ISBLANK(Id) - This condition checks if the record being saved already has an Id, which means it already exists in the database and is being updated. User__c = PRIORVALUE(User__c) - This condition checks if the User field on the current record being saved is the same as the User field on the previously saved record for this object.
Greetings!
Yes, you can call two JS Function on one onClick. Use semicolon (';') between both the functions.
Thank you!
Regards,
Suraj Tripathi
All Answers
Greetings!
Yes, you can call two JS Function on one onClick. Use semicolon (';') between both the functions.
Thank you!
Regards,
Suraj Tripathi
Yes, you can call multiple JavaScript functions on a single onClick event in a Visualforce page. You can do this by separating the function names with a semicolon, just like in the example you provided in your previous question.
Explanation:
NOT(ISNEW()) - This condition checks if the record being saved is an update and not a new record creation.
ISBLANK(Id) - This condition checks if the record being saved already has an Id, which means it already exists in the database and is being updated.
User__c = PRIORVALUE(User__c) - This condition checks if the User field on the current record being saved is the same as the User field on the previously saved record for this object.
If these conditions are met, the validation rule will throw an error message. You can customize the error message to suit your needs.
aws online training (https://www.igmguru.com/cloud-computing/aws-certification-training/)
I hope this helps!