_cfv - minor issue (?) #129
Replies: 12 comments 4 replies
-
Hi @Deanobeano2 The _cfv parameters need to be in a certain order you have put the bold in the background-color slot. Try this: _cfv=[field_356, is, Inactive, red, , bold, ] The cfv has 7 parameters which all need to be in a certain order for it to work. Craig |
Beta Was this translation helpful? Give feedback.
-
Craig Thank you very much for the prompt reply. I should have paid more attention to the (required) in the parameters, and the ,,, in some examples I'd seen. That quickly solved that problem and has enabled me to make progress on the next challenge of trying to hide a field in a form contained within a scene, it that is even/currently possible. Dean |
Beta Was this translation helpful? Give feedback.
-
Hi Craig I have a scene for sales order entry comprised of the Sales Order at the top, a grid of the line items for the sales order in the middle, and a form at the bottom for adding items to the order. In this instance I'd like like to hide the Location field in the form if the location field in the Sales Order is not blank, as we'll use record rules to populate the location field for the line item. I hope this helps describe what I'm trying to achieve. Dean |
Beta Was this translation helpful? Give feedback.
-
The first form is that submitted before the second form?
Is the location added in the first form when the scene is opened or is it
already populated?
There is a certain set of circumstances where cfv may work but I think this
might be a JQuery coding exercise.
If you could provide a screenshot that would be helpful and whether each
form is an add or an update form, please.
Craig
…On Fri, 20 Oct 2023, 08:20 Deanobeano2, ***@***.***> wrote:
Hi Craig
I have a scene for sales order entry comprised of the Sales Order at the
top, a grid of the line items for the sales order in the middle, and a form
at the bottom for adding items to the order. In this instance I'd like like
to hide the Location field in the form if the location field in the Sales
Order is not blank, as we'll use record rules to populate the location
field for the line item.
I hope this helps describe what I'm trying to achieve.
Dean
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQQXAZPKBTK3BT2RZB7F3LYAIQ2TAVCNFSM6AAAAAA6IPGU22VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMZVG44DG>
.
You are receiving this because you commented.Message ID:
<cortexrd/Knack-Toolkit-Library/repo-discussions/129/comments/7335783@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Craig Hopefully, the attached pictures help you understand our/the process. Dean |
Beta Was this translation helpful? Give feedback.
-
Hi Dean I don't think this is possible using just KTL (yet) it will require some code. I don't mind helping with that if you'd like? Craig |
Beta Was this translation helpful? Give feedback.
-
Hi Craig Norm thought this probably wasn't possible from an earlier description, and with more information you've confirmed our suspicions. It would be appreciated if the solution could be achieved via code but only if it wouldn't take too long, and you could see the code being of benefit to other people. Otherwise, it might be best to wait until this feature is added as I think Norm said it might be down the track. Dean |
Beta Was this translation helpful? Give feedback.
-
Guys, Craig is right. I've released a major update that will change everything, thanks to the I am updating the documentation right now. More will follow tomorrow, |
Beta Was this translation helpful? Give feedback.
-
Hi Norm,
That’s gonna be amazing, looking forward to testing it out.
Thanks
Amanda
…On Sun, 22 Oct 2023 at 03:32, Cortex R&D Inc. ***@***.***> wrote:
Guys,
Craig is right. I've released a major update that will change everything,
thanks to the ktlCond option.
I am updating the documentation right now.
More will follow tomorrow,
Norm
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATAWKK3WR644AR3KNU5J4T3YASAULAVCNFSM6AAAAAA6IPGU22VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGNBZGAZDA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <cortexrd/Knack-Toolkit-Library/repo-discussions/129/comments/7349020@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Craig Unfortunately, I can't seem to get it to work using your code nor with this variation: Dean |
Beta Was this translation helpful? Give feedback.
-
Hi Craig The issue with the code not working must be particular to this instance/view configuration as this test code: used comparing values within the same view on another form works fine. I actually want the text for the field to be red and bold but thought I'd test things while I was playing around. Dean |
Beta Was this translation helpful? Give feedback.
-
Hi Craig That's quite all right as there's no urgency with this. Dean |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm just starting and learning how to use the _cfv keyboard and seem to have hit a minor issue. I'm using _cfv =[field_356, is, Inactive, red, bold] and it correctly uses red for the text for the target field but I can't seem to get the bold to work. Am i doing something wrong or could there be something else preventing the target text from being in bold?
Dean
Beta Was this translation helpful? Give feedback.
All reactions