3

How can I validate the specific record when field is empty based upon specific record value in apex:repeat tag?

For example, I have displayed 10 account input records with four fields in page. In those 10 records I had given value "yes" for second record. In that second record I have given the once filed value remaining three fields are empty. If second field is "yes" remaining three fields need to give the inputs no need to put as a empty. They must enter the values. If empty I need to validate. If "no" given in second field no need to validate. How can I validate those fields in apex:repeat tag?

  • i have given ids for that apex:repeat records. when i fetching the particular field in javascript. it not getting. it showing dynamical id. sofar i struck in that time. if you know how to validate based upon your knowledge help me on this. – userv Mar 1 '18 at 14:23
  • 2
    Please edit your post to be extremely specific about what you have and where you are stuck. Include your code and screenshots as applicable. If you are getting any information or error messages via the console please share that also. It's not a guessing game here, and as your question is written does not demonstrate you have put forth any effort to solve this problem yourself. – Adrian Larson Mar 1 '18 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.