Any help would be highly appreciated.I am working on Nintex form and currently stuck with this rule to be worked.
I have first checkbox as YES/NO (Name: NA), trying to create a rule where automatically all the options (Name:Options) below automatically go uncheck when somebody clicks on this first "Not Applicable". If it could hide all the below options after clearing that would be great but not requirement. Definitely clearing them out is requirement.
Is there anyone who can help me with this. Thank you.
It would really help to see some screenshots of your form and it's controls.
However, I can tell you that a rule will not be able to change the values of another control. For this, you're going to want to use JavaScript in the Settings -> Custom JavaScript section.
I will often show/hide a portion of a form based on the selection of a control. And, when the section is hidden, I always want to clear out any data that may have been entered into those (now hidden) fields.
Here's an example:
Image of Form Example
And here's the code:
NWF$('#' + myYesNo).change(function(){
NWF$('#' + myChoices + ' input').prop('checked',false);
});
Every time the Yes/No field is checked, everything in the Choices field is unchecked.
I would also suggest adding a rule to the Choices field (and its label) that says not(myYesNo): like this.
If you didn't want to hide the choices, I would expand the JavaScript to test whether or not the Yes/No is currently true or false. However, hiding the choices entire remove the need for that test.
Related
Hi everyone wonder if anyone can provide pictures or the exact steps pertaining to how to locate the "validation expression according to this link https://helpx.adobe.com/experience-manager/6-3/forms/using/adaptive-form-expressions.html#main-pars_header_3
Also while you are here I am wondering if it is possible to use these validation tools to check if the income is greater than the cost. i.e the user have to key in a higher value in the income numeric box as compared to the cost numeric box. If not providing a guide that allows me to do this would be great.
Many thanks in advance!
The validate expression is written using the Code editor of the rule editor. For e.g., I've created an adaptive form with 2 Numeric Boxes (Income and Cost) as shown below.
So, to validate if the value entered in the income is always greater than the cost, then click on the Income field and then click the Edit Rules icon. This will open the rule editor
Once in the rule editor window, click on the Income field on the left rail and then click the Create button.
In the Create Rule window, you can use the Validate event and configure the required condition.
You may also need to write a similar condition on the cost field as well, but in reverse (Cost is less than Income) so that when someone changes the value in the Cost field, it is validated too.
As far as your original question goes, if you switch to the Code Editor, it should give you another editor where you can write Javascript to validate the value. The validation expression from your documentation link goes there (see below).
I have a yes/no fields that controls whether the next 3 sections are visible (relevant) or not. It works fine, but as soon as the visibility state is changed at runtime, the sections cannot be clicked anymore in wizard view! I also cannot navigate to them using the prev/next buttons at the bottom. Is this a bug?
I defined rules for all sections that have a conditional visibility state:
relevant="$control-1 eq true()"
Is there another way i could do this, maybe as a "global" XPath expression?
Demo
This looks like a bug. We fixed a very similar one with #3547, but I entered a new bug since this is failing again, see #3610. Please follow-up there.
When clicking add or edit in a Grocery Crud grid, I need to explain what the purpose of a certain field is to assist the user in completing the form by putting some custom text next to the field called "Active" that is a select box, so that it looks like this:
Active? [Select active] Note: select Yes to ensure that your event is activated.
How can I do this?
Unfortunately, I was forced to do a bit of a hack, as the client urgently needed this done. I have done it by using jQuery to append a string to the select box on document.ready(). If there is a better way, I will gladly adapt, and accept that answer instead, but for now, the above solution works.
I would kindly ask for your help :) From couple of days I am trying to achieve "linked" custom field in content editor and dropdown in page editor.
Basically I want to have dropdown in page editor and content editor which are responsible for a same thing.
In my c# code i have enums which represent directions. I created custom field which accepts assembly and class with overridden onload method and successfully populate dropdown values in the content editor. So far so good but i have no idea how to create dropdown which will represent the same functionality inside page editor.
So please give me any ideas...
Judging from your reply to my comment you need to think of the following: How is my field value being rendered onto a page?
If you are always using 1 control to do this then you just need to ensure that this control has 2 different rendering modes depending on the Context.PageMode
But as I understand it you want this dropdown to also appear when someone renders your custom field using a <sc:FieldRenderer>. In this case you'll need to look into the RenderField pipeline of Sitecore. There you find a processor called RenderWebEditing. Possibly through some manipulation here you can get your dropdown appear as you wish.
I set up a simple form with Chronoform V4. One of the field need to be kinda dynamic.
for example,
do you know your id, if yes, then input id.
if not, then there are other filelds need to be filled, such as name, birthday, sex etc.
but if you know the id, those fields should be grey out or something etc.
How can I do this in joomla? Many thank
Your best bet? Hop on the forums over at www.chronoengine.com - not only are the developers super friendly, I have seen them custom code stuff for their users more times than not.
They know the stuff best and will definitely be able to help you.
That said, there are ways to add custom code snippets to chronoforms - I recommended using javascript to accomplish your goal. I have done something similar and chronoforms + javascript = wonderful result.
If you've created your form with their wizard, go into your forms and click Wizard Edit.
From there on the right hand side you should see an 'Events' tab - click that.
In the 'On Load' event, you'll want to add 'Load JS' from the menu on the left. Then you can open that, and add your javascript to control your choices. The javascript will load when the form does and you can control the user selections exactly how you're requesting.