Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • I214 8 posts 88 karma points
    May 27, 2021 @ 09:42
    I214
    0

    How to add extra settings to umbraco forms field - short answer

    Hi. I need to implement a extra field settings for the short answer in the backoffice under the default value. I want to have the extra field settings like the toggel of the mandatory where you can disable/enable the the field but for the short answer. How do I go about it using c# ?

    enter image description here

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 27, 2021 @ 09:54
    Dennis Aaen
    100

    Hi Faab

    First of all welcome to our.

    For this you will need to make your own custom field for the short answer

    We have documentation on how to mase a custom field type for Umbraco Forms

    https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/extending/adding-a-type

    As part of this there is also how to add settings

    Hope this helps,

    /Dennis

  • I214 8 posts 88 karma points
    May 27, 2021 @ 13:06
    I214
    0

    Hi Dennis

    Thank you :) It was helpful.

    I can show the custom field in the backoffice forms, now i want to check if the checkboks is set to true/false and disable the inputfield ?

    [Umbraco.Forms.Core.Attributes.Setting("DisableField", Description = "Disable the field", View = "Checkbox")]
    public bool DisableField { get; set; }
    

    how will i aproch that?

    Maybe my question is not clear but i am bit new in umbraco !

Please Sign in or register to post replies

Write your reply to:

Draft