I am converting some numbers using Javascript and need to filter a list using these conversions. I cannot do the conversions within SharePoint itself, so I had to use Designer and some Javascript. I need to use the end variable, compare, in the filter criteria of my Data View Web Part. I do not currently have it as a return value, but if needed, I can make the Javascript function return it. How do I reference this variable in my Filter Criteria?

1 Answer 1


The script is going to run client side, so you can't filter the DVWP with the calculations. You can filter client side and either remove or hide the items in the DOM.

  • Could you recommend a source to hide items in the DOM? Thanks.
    – sange
    Commented Mar 29, 2011 at 20:14
  • Plenty of examples on the Web for that. Basically, you set display: hidden. Commented Mar 30, 2011 at 11:30

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.