Skip to content

Making the particular variable Read only in the RITM table #1064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BeniRaja opened this issue Apr 30, 2024 · 1 comment
Closed

Making the particular variable Read only in the RITM table #1064

BeniRaja opened this issue Apr 30, 2024 · 1 comment

Comments

@BeniRaja
Copy link

How to make the particular variable field as "Read Only" in RITM table on type as "onLoad"
I have attached the code below,

function onLoad() {
// Specify the variable name 'groups'
var variableName = 'groups';

// Get the value of the 'groups' variable
var groupsValue = g_form.getValue(variableName);

// Check if the 'groups' variable exists and is not empty
if (g_form.hasField(variableName) && groupsValue !== '') {
    // Make the variable field read-only
    g_form.setReadOnly(variableName, true);
}

}

This is my code, but it doesn't works

@Lacah
Copy link
Contributor

Lacah commented Sep 29, 2024

This issue does not belong here. In case you need general support with your code, you can post your question in the following channels:

@Lacah Lacah closed this as completed Sep 29, 2024
@Lacah Lacah closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants