I would like to create a read only form with an edit button to allow data changes. My first thought was to create an action button that would load a read/write clone of the original form. Alternatively, I could add an action button that allows a read only form to become a read write form.
Any suggestions on how to accomplish this?
Thanks
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
read only form with edit button
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: read only form with edit button
barrydocs,
there are different ways: it depends on what you need.
To restore Save button or readonly values you could add a Extra Action button like this:
Hope this helps,
Max
there are different ways: it depends on what you need.
that's what Clone button does (you can also add Display conditions to make it appear only in some cases): the cloned record isn't saved until Save button is pressed. You may want to check your login with Javascript/jQuery in nuBeforeSave() or nuBeforeClone() functions and/or PHP in Custom Code > Before Save.barrydocks wrote:My first thought was to create an action button that would load a read/write clone of the original form.
This could be done in Custom Code > Javascript, for example, add this code in your form to hide Save button:barrydocks wrote:I could add an action button that allows a read only form to become a read write form.
Code: Select all
function nuLoadThis() {
//Disable Save button
$("#nuActionSave").toggle();
// Set all INPUT elements to readonly
$(":input").attr("readonly","readonly");
}
Max
You do not have the required permissions to view the files attached to this post.
-
- Posts: 73
- Joined: Mon Feb 24, 2014 2:58 pm
Re: read only form with edit button
Hi
This only makes input fields read-only, but not lookups. Is there an easy way to include these?
BR, Tinka
This only makes input fields read-only, but not lookups. Is there an easy way to include these?
BR, Tinka