Answered
17 Aug 2016
in reply to
quanganh
Link to this post
Hi Quang,
I have forwarded the required script to apply respective css class to Julien. The details are as following for your reference too.
Step1: Place a Javascript widget
on your form
Step2: Paste the following code
in it
function RequiredCheck(){
$('.txtRequired').each(function(){
var elementStyle = $(this).attr('style');
if(elementStyle =='display: inline;')
{
$(this).closest('.sfFieldWrp').css('border','1px solid red');
$(this).closest('.sfFieldWrp').css('border','1px solid red');
}
});
}
Step3: Select the option under
widget to place it “Before the closing body tag”
Step4: Press edit on Submit
button, Press Advanced, Find the tag name “OnClientClick”, and type the
function name as RequiredCheck();