문제

I would like to create a calculated field which requires a digit. This digit must be between a Max and Min value which are two ListItems in another list. How can I create a formula for this calucated field to check that the value is not less than Min and not more than Max?

도움이 되었습니까?

해결책

I would do this by adding script to the NewForm and EditForm that reads the values from the other list. You can hook into PreSaveAction as well so that the user doesn't have to wait for the server to reject the save; you can handle it client side.

다른 팁

You can not because a Calculated Formula only operates on ONE Item in ONE List

So your workarounds

  • make a workflow copy Min/Max values from List B to every ListItem in List A
  • Use No Calculations; Let the View (using CSR or other scripting) display the incorrect value
  • On every change Min/Max in List B, update the Formula in List A definition with those (hardcoded) values
  • ??
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top