仅可通过移动端拍摄上传
AttachmentField.IsOnlyCameraUpload(属性)
说明
可读写
图片和附件字段是否仅可通过移动端拍摄上传
返回值
Boolean
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const field = await app.Sheets(1).FieldDescriptors("@图片和附件")
const prop = await field.Attachment
prop.IsOnlyCameraUpload = true
field.Apply()
}
脚本编辑器 示例
javascript
function main() {
const field = Application.Sheets(1).FieldDescriptors("@图片和附件")
const prop = field.Attachment
prop.IsOnlyCameraUpload = true
field.Apply()
}
main()