The simplest solution for this scenario would be to add a hidden field to your form that has the default value set to "Pending", then use the "Submissions Directory" menu item to allow only super administrator level users to edit the submissions and change the value of this hidden field.
Another option would be to add a dropdown field to your form with the three statuses and use a custom script in "Scripts called on form display" that will check the user group the current user...
Fieldsets/Sections: This would be the main container that holds rows and columns. This would allow form designers to style a section within a form to allow it to stand out from the rest without needing to manually edit the form. Advantage 2 is that conditional fields could be used to show/hide a section based on conditions.
Form designer: The layout and logic used by Yootheme Page Builder could be used to layout RSForms. A side panel where you layout the sections...
I made a workaround but I was wondering if there is a more elegant solution.
I have set an extra checkbox on the form with only one item and additional attributes: style="display: none" and readonly=”readonly”. So this field is not visible. (you can't use a hidden field in conditional fields ?!?).
In PHP scripts - Pre-processing next statement:
if ($val[-PLidnr-] > 0) { $val[-P-] = 'N'; } else { $val[-P-] = 'Y'; }
In conditional fields an extra test on field 'P' to show/hide other fields.
thanks. is not working though.
try also to reduce it to:
<script>
function updateFieldVisibility() {
// Get the reference to Field 4
var field4 = document.getElementById('field4');
// Check if Field 3 is above 0.5 and less than 0.75
if (field3Result > 0.5 && field3Result < 0.75) {
// Show Field 4
field4.style.display = 'block';
} else {
// Hide Field 4
field4.style.display = 'none';
}
}
</script>
since the field 1 and 2 division can be simple done with an rs form calculation....
Without testing I can't gurantee it will work seamlessly but try this function
function updateFieldVisibility(){// Get the values of Field 1 and Field 2var field1Value = parseFloat(document.getElementById('field1').value);var field2Value = parseFloat(document.getElementById('field2').value);// Calculate the result of Field 1 / Field 2var field3Result = field1Value / field2Value;// Get the reference to...
You can do it with javascript and a hidden field 'expiryDate' to contain the date that the form should expire. Her's some code to show a notification and a message under the disabled submit button
First create the hidden field and add a date in the past for testing like 2023-06-30
Next add the following javascript to the css/javascript section
Pretty simple form. I've got a drop down with 6 options and need to have 2 or 3 different fields display based on the option chosen. The fields are showing constantly as if no condition has been set to hide them.
RSForm Pro 3.1.11
Joomla 4.3.3
I have something similar which changes styles and enables or disables various options in a dropdown field which is called using window.onload so is similar to what you are asking for. Try this which is called the same way so should evaluate the initial state of the fields and update hidesend when the input fields change. You'll need to change 'field1' and 'field2' to the actual names of your fields in the getElementById calls.
// Function to evaluate the fields and toggle visibility of...
I have a payment form that has an administration fee that is required in addition to whatever else is purchased. I made this a required field and have it check-marked by default. Is there a way to simply make it mandatory without requiring it to be checked? It needs to be shown on the form but right now a person could uncheck it. How should I go about it?
The field is a 'Multiple Products' field. Someone suggested to me to hide the field and simply add another text field that just says a fee will be applied. Is this possible?
I think you need to change the display property for the field you want to hide from 'display' to 'none' or if the selected index in the age1 field is 3. Opposite way round to show it if 3 is selected,
something like
if (document.getElementById('age1').selectedIndex = 3) {
document.getElementById('conditionalFieldName').style.display = "none"; //to hide
document.getElementById('conditionalFieldName').style.display = "block"; // to show
}
Hi.
I have used the RS Form Pro to customize the registration form.
But now I need to know how to show/hide the field from the RSForm on the user edit profile page at the front-end and back-end. prnt.sc/2tWEvm2wMhzg
And how to re-order or show/hide the field on this form? prnt.sc/2tWEvm2wMhzg
Thanks