0

I'm using SharePoint 2013. I have a list with custom columns. One column is text type, and I want to set it as URL type. In SharePoint Designer, I can change the type, but I can't choose "URL" type.

I tried in powershell, doesn't work too. According to this site.

$site = Get-SPSite -Identity "http://serverName/"
$web = $site.RootWeb 
$field=$web.Fields["Custom Site Column"]
$field.Type= "URL"
$field.Update($true)
$web.Dispose()
$site.Dispose()

I also tried :

$field.Type= [Microsoft.SharePoint.SPFieldType]::URL

Instead of :

$field.Type= "URL"

But when I did the Update($true) or Update(). Answer an error like : you cannot use this type. I don't want to delete the list and create it again, because there is lots of aspx page inside and else.

Any ideas to force the column type to be URL ?

7
  • Can you share the code you have tried? May 23, 2014 at 6:51
  • Update question
    – Nico
    May 23, 2014 at 6:59
  • Well, If I can't see the choice in my browser, or in SPD, and cannot do it in powershell .. I guess it's impossible =/
    – Nico
    May 23, 2014 at 7:04
  • You can force a change by updating the "XML" attribute of the field with powershell, but it would most likely break it May 23, 2014 at 7:05
  • Yes, doing something like : <Field Type="URL" Format="Hyperlink" I think it's better to create it again, don't you think too ?
    – Nico
    May 23, 2014 at 7:08

1 Answer 1

1

You can try with Sharepoint Manager 2013. First test with sample column then apply to your column.

You can download sharepoint manager from:

http://spm.codeplex.com/

13
  • Really nice soft, even if it shows lots of error. So I'm able to see my column type, set it as URL, but when I save, I still have an error.
    – Nico
    May 23, 2014 at 7:23
  • So its won't let you change the column it any way. You should try to create a new column and try to copy the data to that column.
    – Aanchal
    May 23, 2014 at 7:25
  • What is the error you getting?
    – Aanchal
    May 23, 2014 at 7:25
  • 1
    You can set your column order as your wish from modify view
    – Aanchal
    May 23, 2014 at 7:59
  • 1
    I don't think this would be possible as you have to provide the URL as it is a URL field.
    – Aanchal
    May 23, 2014 at 8:23

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.