Calculated Value in list for IP Address
I'm trying to format the input of an IP Address so it will have the .'s in the right place. I'm not really sure if I even need that but I'm fooling around.So what is happening is I've created a field called IP Address and tried to to a replace but I'm getting a circular reference error because I'm trying to format the field I'm inputing to. How would one go about implementing formating of an IP Address?
March 18th, 2010 11:59pm

A couple ideas: 1) Let the user enter the data into one field "IP addr" (1.1.123.1) and then add a calculated column "IP addr formatted" to display the formatted version (001.001.123.001). In the views for the list remove "IP addr" and only display "IP addr formatted". 2) Add an event receiver (code required) to validate and format the field during adds and edits. 3) Edit the newform.aspx and editform.aspx pages (using SharePoint Designer) for the list using SharePoint Designer and add JavaScript to reformat and validate when they exit the field. Mike Smith TechTrainingNotes.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 19th, 2010 4:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics