Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Make a field read only in UI Builder?

Gary Fawcett1
Tera Guru

Hi,

New to UI builder, and I am trying to make a field in a "Form" Component Read Only on a UI Page.

We have a UI Policy on the Form View that works fine in the backend.  But not on the UI page/

I have created a Page Script that runs when the page is ready

function handler({api, event, helpers, imports}) {
    form_1.setReadOnly('caller_id',true);
    g_form.setReadOnly('caller_id',true);
}

Neither of these work on the UI Page.

Has anyone worked this out or can provide any documentation on how to do this? 

Thanks...Gary

 

1 ACCEPTED SOLUTION

Gary Fawcett1
Tera Guru

I think I have worked this one out.  The component "Form - Fields" has a Read-Only option.

So if you looking to make a Read-Only form  this might be the way to go.

find_real_file.png

Thanks...Gary

View solution in original post

1 REPLY 1

Gary Fawcett1
Tera Guru

I think I have worked this one out.  The component "Form - Fields" has a Read-Only option.

So if you looking to make a Read-Only form  this might be the way to go.

find_real_file.png

Thanks...Gary