I am using quiz module.

I am creating a view which has field which shows the status of the quiz. If the user score is greater than pass rate, the field should display "pass" else "fail". How to achieve this.

I used views php module to do this. But, I'm confused between Value code and Output code.

Can anybody provide some pointers?

1 Answer 1


Value Code : The value of the Field.

Output Code : The php code that you wish to execute for getting the output for that field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.