简体   繁体   中英

Create Sharepoint input controls via JSLINK

In my SharePoint 2013 project, I'm limited and can use only JavaScript. I need to implement custom column type. For example, in a list, I have "Address" field (ie long text) but in new/edit/display form, I want that field to be expanded (probably with JsLink) with additional fields: Address 2, Zip, etc... The idea is that I later fetch all data from additional inputs and save it as JSON in "Address" field. Later on, this model (ie Address) will be used as a template in other lists when needed.

I'd like to use integrated SharePoint controls and be able to exploit built in features, such as validation methods etc...

Is such thing possible with JsLink? If it is not, is there any other workaround?

Thanks,

Yes, it is possible. In this case you can create different columns of single line text(, ie,"Address Line1", "Street", "Zip", "City") and then create a new column of "Calculated" type namely "Full Address" and in the settings of that column you can specify to add all the previous columns namely,"Address Line1", "Street", "Zip", "City". Have a look at the image. Here, I have 3 columns of "FirstName", "LastName", and "FullName". In this the user only enters the value of "FirstName" and "LastName" and the "FullName" is automatically calculated. The image shows the settings of the "FullName" column. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM